File tree Expand file tree Collapse file tree 5 files changed +44
-19
lines changed
tutorials/buoyantSimpleFoam-aster Expand file tree Collapse file tree 5 files changed +44
-19
lines changed Original file line number Diff line number Diff line change @@ -137,7 +137,6 @@ while adapter.isCouplingOngoing():
137137 filename = "REPE_OUT/output-" + str(k) + ".rmed"
138138 DEFI_FICHIER(FICHIER=filename, UNITE=80+k, TYPE='BINARY')
139139 IMPR_RESU(FORMAT='MED', UNITE=80+k, RESU=_F(RESULTAT=TEMP))
140- #call(["mv", filename, settings["base-path"] + "/" + participant["directory"]])
141140 DEFI_FICHIER(ACTION='LIBERER', UNITE=80+k)
142141
143142 # Use current solution as initial condition for the next time step
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ echo " Cleaning..."
4+
5+ . $WM_PROJECT_DIR /bin/tools/CleanFunctions
6+
7+ # Participant 1: Solid
8+ Participant1=" solid"
9+ rm -fv ${Participant1} /solid.mess
10+ rm -fv ${Participant1} /solid.resu
11+ rm -fv ${Participant1} /solid.rmed
12+
13+ # Participant 2: Fluid
14+ Participant2=" fluid"
15+ cd ${Participant2}
16+ cleanCase
17+ touch Fluid.foam
18+ cd ..
19+ # Remove the log files
20+ rm -fv ${Participant2} _blockMesh.log
21+ rm -fv ${Participant2} _checkMesh.log
22+ rm -fv ${Participant2} _decomposePar.log
23+ rm -fv ${Participant2} .log
24+ rm -fv ${Participant2} _reconstructPar.log
25+
26+ # Remove the preCICE-related log files
27+ echo " Deleting the preCICE log files..."
28+ rm -fv \
29+ precice-* .log \
30+ precice-* -events.json
31+
32+ # Output files for preCICE versions before 1.2:
33+ rm -fv \
34+ iterations-${Participant1} .txt iterations-${Participant2} .txt \
35+ convergence-${Participant1} .txt convergence-${Participant2} .txt \
36+ Events-${Participant1} .log Events-${Participant2} .log \
37+ EventTimings-${Participant1} .log EventTimings-${Participant2} .log
38+
39+ # Remove the preCICE address files
40+ rm -rfv precice-run
41+ rm -fv .* .address
42+
43+ echo " Cleaning complete!"
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11settings = \
2- {'base-path': '/home/michel/Git /code_aster-adapter/tutorials/buoyantSimpleFoam-aster',
2+ {'base-path': 'path/to /code_aster-adapter/tutorials/buoyantSimpleFoam-aster',
33 'couplings': [['Solid-Interface', 'Fluid-Interface']],
44 'participants': {'Fluid': {'directory': 'fluid',
55 'domain-decomposed': False,
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments