You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add improvements, bug fixes, + notes from j-signorelli/su2-precice-pywrapper (#34)
* Nondimensional mode implementation
* Fix compilation w/ OMP bug
* Specify problem dimension as argument
* Clarify meaning of Monitor
* Save time and iter for implicit coupling
* Fix CHT initial read/write (was misleading) (read_data --> write_data)
* Add disclaimer/note on restarting simulations
**NOTE**: As of SU2 v7.5.1: Deforming `MARKER_EULER`'s are buggy when simulations are run in parallel, leading to unexpected results. More information can be found at this discussion here: https://github.com/su2code/SU2/discussions/1931.
168
168
169
-
### Further notes
169
+
## Important note on restarts
170
+
171
+
This code **has not been tested** for restarts using initializations *from* SU2. Any restarted simulations should have SU2 be the first participant and receive initialization data. It is possible that, if SU2 must send initialization data, that it is incorrect (it may use default values in the config file, or just be zeros if the data hasn't been computed until after/during a first iteration). Admittedly, this is from a lack of understanding of the specifics of how SU2 operates and there may not be a trivial work-around.
172
+
173
+
## Further notes
170
174
171
175
Result files (vtu) generated from SU2 might be incompatible with your ParaView version. For example, ParaView 5.11.2 on Ubuntu 22.04 is known to fail with SU2 7.5.1 result files, but ParaView 5.12 works.
parser.add_option("-m", "--precice-mesh", dest="precice_mesh", help="Specify the preCICE mesh name", default="Fluid-Mesh")
57
57
parser.add_option("-r", "--precice-reverse", action="store_true", dest="precice_reverse", help="Include flag to have SU2 write temperature, read heat flux", default=False)
58
-
58
+
59
+
# Dimension
60
+
parser.add_option("-d", "--dimension", dest="nDim", help="Dimension of fluid domain", type="int", default=3)
61
+
59
62
(options, args) =parser.parse_args()
60
-
options.nDim=int(2) # Specify dimension here
61
63
options.nZone=int(1) # Specify number of zones here (1)
62
64
63
65
# Import mpi4py for parallel run
@@ -177,9 +179,9 @@ def main():
177
179
if (interface.is_action_required(precice.action_write_initial_data())):
0 commit comments