Skip to content

Code_Aster Adapter Installation Instructions

Gerasimos Chourdakis edited this page Jan 15, 2020 · 12 revisions

Prerequisites

Make sure that you have already installed preCICE, the preCICE Python bindings, and Code_Aster. Currently the adapter supports preCICE v4.1 and Code_Aster v14.4. We are currently working on updating the adapter for the latest version on preCICE.

Getting the Code_Aster adapter

Please download the adapter code or clone the repository. Before the adapter can be used, you have to follow the following steps:

  • Place cht/adapter.py in the Code_Aster directory, under $ASTER_ROOT/14.4/lib/aster/Execution.
  • In solid/solid.export, change the paths in lines 38 to 44 respectively to your local system. Make sure to leave the codes after the paths (e.g. D 20, R 6, etc.). (TODO: Move to tutorial) For example:
    F comm /path/to/code_aster-adapter/cht/adapter.comm D  1
    F mmed /path/to/code_aster-adapter/tutorials/buoyantSimpleFoam-aster/solid/solid.mmed D  20
    F comm /path/to/code_aster-adapter/tutorials/buoyantSimpleFoam-aster/solid/../config.comm D  90
    F comm /path/to/code_aster-adapter/tutorials/buoyantSimpleFoam-aster/solid/def.comm D  91
    F mess /path/to/code_aster-adapter/tutorials/buoyantSimpleFoam-aster/solid/solid.mess R  6
    F rmed /path/to/code_aster-adapter/tutorials/buoyantSimpleFoam-aster/solid/solid.rmed R  80
    F resu /path/to/code_aster-adapter/tutorials/buoyantSimpleFoam-aster/solid/solid.resu R  8
    
  • In config.comm, change the base-path in line 2 to the path of the tutorial folder on your local system. (TODO: Move to tutorial) For example:
    {'base-path': '/path/to/code_aster-adapter/tutorials/buoyantSimpleFoam-aster',
    

Now you are ready to run the flow-over-plate CHT tutorial.

We moved these pages to the preCICE website: https://www.precice.org/adapter-code_aster.html

Clone this wiki locally