Closed komahanb closed 4 years ago
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If this is still a relevant issue please comment on it to restart the discussion. Thank you for your contributions.
Hi, Komahan,
I also noticed this error in fsi_computation.py. And this error was fixed by adding a periodic boundary condition. For example:
Adding one line in parser part:
parser.add_option("--periodic", dest="periodic", default="False", help="Define whether the problem has periodic boundary conditions", metavar="PERIODIC")
And the Line 109 changes to
FluidSolver = pysu2.CFluidDriver(CFD_ConFile, 1, FSI_config['NDIM'], options.periodic, comm)
However, when I want to run the basic fsi coupling of two-dimensional pitching-plunging NACA 0012 airfoil by using the 'TESTER' CSD Solver 'PitchPlungeAirfoilStructuralTester', another error occurs.
If I run by typing:
fsi_computation.py -f FSICoupler_config.cfg
This gives the following error:
***************************** Initializing fluid solver ***************************** ('A TypeError occured in pysu2.CSingleZoneDriver : ', TypeError("in method 'new_CFluidDriver', argument 5 of type 'SU2_Comm'",)) ERROR : You are trying to launch a computation without initializing MPI but the wrapper has been built in parallel. Please add the --parallel option in order to initialize MPI for the wrapper.
If I run in parallel by typing:
'fsi_computation.py -f FSICoupler_config.cfg --parallel'
This works without error but the program stops at Mapping fluid-solid interfaces
***************************** Mapping fluid-solid interfaces ***************************** Building interpolation matrices...
Here I upload the config files and the mesh, hope someone can notice those bugs and help to solve.
Best!
2d_coupled_fsi.zip includes: FSICoupler_config.cfg, NACA0012RANS_FullHexa.su2, StructuralTester_config.cfg, SU2_config.cfg
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If this is still a relevant issue please comment on it to restart the discussion. Thank you for your contributions.
https://github.com/su2code/SU2/blob/f4116f45f80b7360169e3126e58cc17e24f9aaa6/SU2_PY/fsi_computation.py#L109
The base C++ code ~/git/su2/SU2_CFD/src/driver_structure.cpp has five arguments:
However, the python script fsi_computations.py provides uses four arguments
Missing argument error
This gives the following error during execution.
I was able to get rid off this error by adding proving the missing argument for periodic BCs.
Order of arguments did not cause any issues
It seems that
and
are both valid calls and the simulation runs. I am not sure if this is safe!