CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Moving obstacle (translation) in a channel

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 3, 2013, 12:51
Default
  #21
New Member
 
Join Date: May 2013
Posts: 4
Rep Power: 13
jcab is on a distinguished road
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
jcab is offline   Reply With Quote

Old   July 3, 2013, 13:19
Default
  #22
Senior Member
 
mturcios777's Avatar
 
Marco A. Turcios
Join Date: Mar 2009
Location: Vancouver, BC, Canada
Posts: 740
Rep Power: 28
mturcios777 will become famous soon enough
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.
mturcios777 is offline   Reply With Quote

Old   April 9, 2019, 09:32
Default
  #23
New Member
 
Huang, Chiung Shu
Join Date: Nov 2018
Posts: 12
Rep Power: 8
kclement1993 is on a distinguished road
Quote:
Originally Posted by mturcios777 View Post
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.
kclement1993 is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
obstacle in a linear channel Stephy OpenFOAM Running, Solving & CFD 5 November 2, 2011 11:42
open channel flow with obstacle !!! opard OpenFOAM 4 May 13, 2011 07:30
Moving cell in a channel yongshenglian OpenFOAM Running, Solving & CFD 0 October 6, 2008 17:45
Translation and rotation for a moving wall Stéphane Champmartin FLUENT 1 November 28, 2006 11:57
Channel with 2D surface mounted obstacle Francesco Marra Main CFD Forum 1 January 5, 2000 04:49


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