CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Post-Processing (https://www.cfd-online.com/Forums/openfoam-post-processing/)
-   -   Writing patches during dynamic mesh motion simulation (https://www.cfd-online.com/Forums/openfoam-post-processing/164521-writing-patches-during-dynamic-mesh-motion-simulation.html)

eelcovv December 24, 2015 04:13

Writing patches during dynamic mesh motion simulation
 
Dear all,

I am trying to run a dynamic mesh motion simulation (foam-extend-3.2) with a floatingBodyMesh.

During the run I am trying to write the patch of the barge at regular intervals using swak4foam

planesAndContours
{
type surfaces;
outputControl outputTime;
fields ();
surfaceFormat vtk;
barge_wall {
type patch;
patchName barge;
}
);
interpolationScheme cellPoint;
}

Here is the problem: the barge points are not updated! So it keeps writing the barge at position time=0, whereas the full data field write the changing mesh points

I found in one of the swak4foam presentations that dynamic mesh handling is not by swak4foam, so I am looking for an alternative way to do write my barge patch

Does anybody has experience with writing patch during dynamic mesh motion runs?

Any hints appreciated!

Regards
Eelco

kmooney January 16, 2016 15:21

I know that sample can dump a patch as a VTK, you might be able to fold part of the code into your solver and have it write the patches out on the fly as well.

https://github.com/OpenFOAM/OpenFOAM...ample/sample.C


All times are GMT -4. The time now is 02:20.