CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Running, Solving & CFD (
-   -   Dynamically change type of the boundary patch (

makaveli_lcf June 16, 2011 10:21

Dynamically change type of the boundary patch

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)


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 22:28.