Skip to content

Adapter and tool configuration schema #18

Description

@uekerman

We currently have a zoo of configuration options:

Adapter or tool Format
CalculiX adapter yml
code_aster adapter comm solver-specific
deal.II adapter prm solver-specific
DUNE adapter ?
DuMuX adapter ?
FEniCS adapter JSON
Nutils adapter hard-coded
OpenFOAM adapter dict solver-specific
SU2 adapter hard-coded & command-line parser
ASTE JSON
FMI runner JSON
Micro manager JSON

Some solver-specific solutions are quite meaningful. Other solutions reinvent the wheel. We have no standard and no schema yet. The latter could also enable quite some tooling support.

Example:

FEniCS adapter: precice-adapter-config.json

{
  "participant_name": "Solid",
  "config_file_name": "../precice-config.xml",
  "interface": {
      "coupling_mesh_name": "Solid-Mesh",
      "write_data_name": "Heat-Flux",
      "read_data_name": "Temperature",
      "interpolation_type": "rbf"
    }
}

FMI runner: precice-settings.json

{
    "coupling_params": {
        "participant_name": "Mass-Left",
        "config_file_name": "../precice-config.xml",
        "mesh_name": "Mass-Left-Mesh",
        "write_data_name": "Force-Left",
        "read_data_name": "Force-Right"
    }
}

ASTE replay:

{
  "participant": "Fluid",
  "startdt": "1",
  "meshes": [
    {
      "mesh": "Fluid-Mesh",
      "meshfileprefix": "./exported-meshes/Fluid-Mesh-Fluid",
      "read-data": {
        "vector": ["Displacement"]
      },
      "write-data": {
        "vector": ["Force"]
      }
    }
  ],
  "precice-config": "../precice-config.xml"
}

Activity

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

Metadata

Metadata

Assignees

Labels

schemaRelated to the adapter config schema

Type

No type

Projects

  • Status
    WP2 Compile standard (2024-2025)

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions