Skip to content

Commit b2d1d64

Browse files
authored
Fixes for solid-codeaster (#201)
1 parent e4b04cf commit b2d1d64

File tree

6 files changed

+15
-9
lines changed

6 files changed

+15
-9
lines changed

Diff for: flow-over-heated-plate-steady-state/README.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ summary: Using a steady-state OpenFOAM solver for a CHT coupling with Code_Aster
99

1010
The setup for this tutorial is similar to the [flow over a heated plate](tutorials-flow-over-heated-plate.html) using OpenFOAM. In this tutorial OpenFOAM is used as the solver for the fluid domain, and code_aster is the solver for the solid domain. A difference here is that we are using a steady-state OpenFOAM solver for demonstration purposes, therefore the results between the two tutorials are not comparable.
1111

12+
{% include note.html content="This is a pseudo-2D case, but we still set a 3D `solver-interface` in `precice-config.xml`, because the code_aster case is set up like this at the moment. Contributions here are particularly welcome!" %}
1213

1314
## Available solvers
1415

@@ -18,7 +19,7 @@ Fluid participant:
1819

1920
Solid participant:
2021

21-
* Code_Aster. The [code_aster adapter documentation](adapter-code_aster.html) is oriented on this tutorial case. In particular the described configuration settings.
22+
* code_aster. The [code_aster adapter documentation](adapter-code_aster.html) is oriented on this tutorial case. In particular the described configuration settings.
2223

2324
## Running the Simulation
2425

@@ -34,4 +35,8 @@ For visualizing the result of the solid solver, press again `Open ParaView File`
3435

3536
![post-processing](images/tutorials-flow-over-heated-plate-steady-state-post-processing.png)
3637

38+
The `.rmed` file output from Code_Aster can be viewed using [GMSH](https://gmsh.info/). The result is as follows:
39+
40+
![code-aster-result](images/tutorials-flow-over-heated-plate-steady-state-result.png)
41+
3742
{% include disclaimer.html content="This offering is not approved or endorsed by OpenCFD Limited, producer and distributor of the OpenFOAM software via www.openfoam.com, and owner of the OPENFOAM® and OpenCFD® trade marks." %}
Loading

Diff for: flow-over-heated-plate-steady-state/precice-config.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
enabled="true" />
88
</log>
99

10-
<solver-interface dimensions="2">
10+
<solver-interface dimensions="3">
1111
<data:scalar name="Heat-Transfer-Coefficient-Solid" />
1212
<data:scalar name="Sink-Temperature-Solid" />
1313
<data:scalar name="Heat-Transfer-Coefficient-Fluid" />

Diff for: flow-over-heated-plate-steady-state/solid-codeaster/REPE_OUT/.keepme

Whitespace-only changes.

Diff for: flow-over-heated-plate-steady-state/solid-codeaster/run.sh

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
set -e -u
33

44
echo "Warning: this case requires a manual preparation step for code_aster."
5+
echo "You also need to set an absolute path as exchange-directory in precice-config.xml."
56
echo "See the tutorial and code_aster adapter documentation pages for more:"
67
echo "https://www.precice.org/adapter-code_aster.html\n"
78

Diff for: flow-over-heated-plate-steady-state/solid-codeaster/solid.astk

+7-7
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ etude,fich,4,serv Local
1818
serv_fich_export -1
1919
surcharge,nbfic 0
2020
etude,fich,6,FR F
21-
path_etude /path/to/tutorials/CHT/flow-over-plate/buoyantSimpleFoam-aster/Solid
21+
path_etude /path/to/tutorials/flow-over-heated-plate-steady-state/solid-codeaster
2222
option,rep_outils 0
2323
etude,fich,3,resultat 0
2424
etude,fich,6,UL 8
@@ -43,7 +43,7 @@ rex non
4343
etude,fich,1,nom ./solid.mmed
4444
etude,fich,1,type mmed
4545
suivi_interactif 0
46-
path_sources /path/to/tutorials/CHT/flow-over-plate/buoyantSimpleFoam-aster/Solid
46+
path_sources /path/to/tutorials/flow-over-heated-plate-steady-state/solid-codeaster
4747
pre_eda non
4848
etude,fich,4,FR F
4949
option,multiple 1
@@ -58,9 +58,9 @@ make_etude run
5858
option,depart 1
5959
option,only_nook 1
6060
opt_val,ORBInitRef _VIDE
61-
nom_profil /path/to/tutorials/CHT/flow-over-plate/buoyantSimpleFoam-aster/Solid/solid.astk
61+
nom_profil /path/to/tutorials/flow-over-heated-plate-steady-state/solid-codeaster/solid.astk
6262
args _VIDE
63-
etude,fich,7,nom /path/to/tutorials/CHT/flow-over-plate/buoyantSimpleFoam-aster/Solid/REPE_OUT
63+
etude,fich,7,nom /path/to/tutorials/flow-over-heated-plate-steady-state/solid-codeaster/REPE_OUT
6464
etude,fich,0,donnee 1
6565
etude,fich,5,resultat 1
6666
etude,fich,7,compress 0
@@ -86,7 +86,7 @@ etude,fich,6,resultat 1
8686
opt_val,rep_outils _VIDE
8787
M_3 non
8888
etude,fich,2,UL 90
89-
path_surcharge /path/to/tutorials/CHT/flow-over-plate/buoyantSimpleFoam-aster/Solid
89+
path_surcharge /path/to/tutorials/flow-over-heated-plate-steady-state/solid-codeaster
9090
consult non
9191
M_4 non
9292
asno non
@@ -126,7 +126,7 @@ etude,fich,0,nom /path/to/code_aster-adapter/cht/adapter.comm
126126
etude,fich,2,serv Local
127127
option,exectool 1
128128
asverif non
129-
etude,fich,2,nom ./../config.comm
129+
etude,fich,2,nom ./config.comm
130130
option,after_job 1
131131
opt_val,depart _VIDE
132132
opt_val,mpi_nbnoeud 1
@@ -145,4 +145,4 @@ etude,nbfic 8
145145
agla non
146146
opt_val,nbmaxnook 5
147147
version stable
148-
path_tests /path/to/tutorials/CHT/flow-over-plate/buoyantSimpleFoam-aster/Solid
148+
path_tests /path/to/tutorials/flow-over-heated-plate-steady-state/solid-codeaster

0 commit comments

Comments
 (0)