CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (http://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Dynamically change type of the boundary patch (http://www.cfd-online.com/Forums/openfoam-solving/89566-dynamically-change-type-boundary-patch.html)

makaveli_lcf June 16, 2011 10:21

Dynamically change type of the boundary patch
 
Hi!

Is it possible to change let's say calculated type to fixedValue or zeroGradient ones for the boundary patch during run-time?
I found only constant references so far (no type change is possible).

Thank you, waiting for your replies)

Regards,
Alexander

deepsterblue June 16, 2011 11:00

This would probably require you to reset the fvBoundaryMesh definition. You'll have to do a fvMesh::removeFvBoundary(), followed by a fvMesh::addFvPatches(). Of course, each boundary patch needs to be mapped/re-initialized, but with a fixedValue/fixedGradient fvPatch for the calculatedFvPatch that you're looking to replace...

makaveli_lcf June 16, 2011 11:07

Thank you Sandeep for such quick response! Now I see...
I am still embarrassed with a power shutdown because of the lightning storm in our town we just had(((


All times are GMT -4. The time now is 07:04.