Skip to content

Port configuration to preCICE adapter schema #20

Description

@uekerman

The precice-settings.json should be ported to the preCICE adapter schema.

Currently (using the regression test)

{
    "coupling_params": {
        "participant_name": "SolverOne",
        "config_file_name": "../precice-config.xml",
        "mesh_name": "MeshOne",
        "write_data_name": "dataOne",
        "read_data_name": "dataTwo"
    }
}

Adapter schema: https://github.com/precice/preeco-orga/blob/main/adapter-config-schema/precice_adapter_config_schema.json

Easiest way to experiment: https://www.metaconfigurator.org

Example:

{
  "participant_name": "SolverOne",
  "precice_config_file_path": "../precice-config.xml",
  "interfaces": [
    {
      "mesh_name": "MeshOne",
      "write_data": [
        {
          "name": "dataOne"
          "solver_name": "write_data"
        }
      ],
      "read_data": [
        {
          "name": "Heat-Flux"
          "solver_name": "read_data"
        }
      ]
    }
  ]
}

solver_name should be used to model the FMU names, which are currently specified in fmi-settings.json

Note: The example also currently violates the naming conventions.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions