-
-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
0.orig messes up VTK output of foamToVTK #95
Comments
There is a simple workaround possible, if we directly modify |
The reason for this common practice is a bit different. The To avoid duplication, our scripts start by copying the
I tried this with OpenFOAM v1906, 5, 6, 7. I can only reproduce it with OpenFOAM 6, so it is version-specific (and OpenFOAM-specific). I will not fix this. If you need a workaround, you can use the
|
foamToVTK
usesFluid/0
andFluid/0.orig
for creating VTK output. This leads to a duplicate output file in the beginning of the simulation that has to be deleted manually in order to make sure that the Fluid and Structure simulation are in sync, when visualized via paraview. Deleting a file before running paraview is no big problem, but very confusing, if you do not know about it.Can we somehow avoid
Fluid/0.orig
being parsed byfoamToVTK
?As far as I understand,
Fluid/0.orig
has to be provided with the case such that the openfoam-adapter works correctly; eventhoughFluid/0.orig
already exists, the duplicateFluid/0
is created as soon as the simulation is started.Eventhough I only observed this behaviour in the FEniCS-OpenFOAM case, I assume that the same behaviour can be observed in other FSI cases (?), where
0.orig
is needed. E.g. OpenFOAM-CalculiX or OpenFOAM-deal.II.More Details
After running an FSI simulation with OpenFOAM + FEniCS (see precice/tutorials#38), I receive the following output in my case directory:
Running
~/tutorials/FSI/flap_perp/OpenFOAM-FEniCS$ foamToVTK -case Fluid/
gives a folder~/tutorials/FSI/flap_perp/OpenFOAM-FEniCS/Fluid/VTK
with the following content:The File
Fluid_1.vtk
does not really fit into the output and it is actually a duplicate ofFluid_0.vtk
:Like explained above, before visualizing the results in paraview, the file
Fluid/VTK/Fluid_1.vtk
has to be deleted manually.Alternatives to this approach:
0.orig
or0
before runningfoamToVTK
foamToVTK -time 0.1:1
(however, this excludes all output before time 0.1...)The text was updated successfully, but these errors were encountered: