Skip to content

**experimental** preCICE-adapter for the open source multiphysical simulation software Elmer FEM

Notifications You must be signed in to change notification settings

precice/elmer-adapter

Repository files navigation

elmer-adapter

experimental preCICE-adapter for the open source multiphysical simulation software Elmer FEM

Dependencies

Build the adapter

The adapter is called during runtime by Elmer. It is developed as a standalone library of Elmer features, so it has to be built before running the simulation. For building, Elmer provides a FORTRAN wrapper to make sure that code compiled by the user is compatible with ElmerSolver.

To build the adapter, run the script Adapter/build.sh. If Elmer is installed, this script should work out of the box.

Use the adapter

Examples for usage of the adapter can be found in the Partitioned_Heat_Conduction/ folder and in the preCICE tutorial flow-over-heated-plate. For new users it is recommended to look at the tutorial case as a starting point.

How to couple your own code

Assuming you already have a case.sif file and the required mesh files, follow the steps:

  1. Take one of the existing example cases and copy the Coupler_Solver.F90 from there into your project folder.
  2. Use the provided instructions to compile the adapter.
  3. Use one of the provided case.sif files from the example as a template and add the respective commands for calling the adapter in your case.sif file.
  4. Create an appropriate precice-config.xml for the coupling.
  5. Run your case in Elmer via ElmerSolver case.sif. You should now see that Elmer waits for the other participant. When you start the other participant your coupled simulation will be executed.

Current restrictions & future work

Currently, implicit coupling is not supported by the adapter. Parallelization and other advanced features were not explicitly developed or tested.

Partitioned heat equation is thoroughly tested for explicit coupling and gives correct results for an Elmer-Elmer coupling and for Elmer-FEniCS coupling (where Elmer is the Dirichlet participant). If Elmer is the Neumann participant in Elmer-FEniCS coupling, problems occur (probably due to the flux computation, see thesis of Hisham Saeed for details).

The example case Perpendicular_Flap is currently only a monolithic simulation, but a good starting point for FSI. See the perpendicular flap tutorial for details.

Development History

About

**experimental** preCICE-adapter for the open source multiphysical simulation software Elmer FEM

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •