CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Moving obstacle (translation) in a channel (https://www.cfd-online.com/Forums/openfoam-solving/109913-moving-obstacle-translation-channel.html)

jcab July 3, 2013 11:51

If I make a mistake in the name of a faceZone, I have this message:

--> FOAM FATAL ERROR:
Master face zone named layerPoss cannot be found.

From function void Foam::layerAdditionRemoval::checkDefinition()
in file layerAdditionRemoval/layerAdditionRemoval.C at line 64.

FOAM aborting

mturcios777 July 3, 2013 12:19

Hmm, interesting. I didn't know rawTopoChangerFvMesh created the required. Though I wonder if updateMesh is being called correctly since the constructor isn't explicit. Can you run the properly formatted case with the global debug flag for layerAdditionRemoval and post the log? Thanks.

kclement1993 April 9, 2019 08:32

Quote:

Originally Posted by mturcios777 (Post 399541)
In response to the original poster, moving a parallelopiped can be done by using the layerAdditionRemoval polyTopoChanger. I've tried using rawTopoChangerFvMesh, but I think that is a generic class you can copy and use to implement topology changes. When making a new topoChanger class, I like to proceed like this:

1. Identify what operations need to be done to change the mesh (cell/face/point addition or removal etc)

2. See what polyTopoChanger (in dynamicMeshDict) will perform the operation most efficiently (granted the documentation for these isn't stellar, you may have to do some digging. A quick summary of two
- layerAdditionRemoval: creates or destroys a layer of cells adjacent to a specifies faceZone based on the minimum/maximum thickness of that layer. Only works with simply connected surfaces with minimal warping (fairly consistent face normal). Can be used when a surface is translating and we don't want the cell aspect ratio to change
- attachDetach: switches a set of internal faces to a pair of boundary patches to created internal walls. Can be used to make valves which can be actuated according to times or to other criteria
- hexRef8: refinement of hexahedral meshes; see dynamicRefineFvMesh

3. If possible, find an existing fvMesh class that implements the polyTopoChanger and modify

Otherwise, take rawTopochangerFvMesh and get to work.

Good luck!


Can you demostrate a simple case that using the utility of rawTopochangerFvmesh calss??


Thanks a lot!

regards,

James.


All times are GMT -4. The time now is 09:00.