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

How to use mesh modifiers

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By tehache
  • 1 Post By WiWo

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 15, 2007, 07:29
Default Hi there, I managed to set
  #1
Senior Member
 
Thomas Jung
Join Date: Mar 2009
Posts: 102
Rep Power: 17
tehache is on a distinguished road
Hi there,

I managed to set up a moving (i.e. shrinking) mesh, and calculate some diffusion on it, seems to work fine.
Now I would like to use the layer addition/removal stuff. Have been searching a lot on forum and wiki - but have to admit I could not get an idea how to use mesh modifiers. Also, there seems not to be any tutorial really using layer removal.

What I tried:
added this to my dynamicFvMeshDict:

bottom
{
type layerAdditionRemoval;
faceZoneName bottomFaces;
minLayerThickness 5e-3;
maxLayerThickness 1e-2;
oldLayerThickness -1;
active on;
}


where bottom is a patch adjacent to which I would like to remove layers.

Apart from this, I am just calling mesh.upgrade() in my application.
However, somethings missing - nothing happens
(well, the mesh moves as before and as expected, but no layers are removed...)

Maybe I somehow have to create that facezone - but have no idea how...
Any hints?

Thank you!

Thomas
Zhiheng Wang likes this.
tehache is offline   Reply With Quote

Old   May 18, 2007, 05:27
Default o.k. .... found and compiled t
  #2
Senior Member
 
Thomas Jung
Join Date: Mar 2009
Posts: 102
Rep Power: 17
tehache is on a distinguished road
o.k. .... found and compiled the utility "setSet", and can construct faceSets now. However I am in doubt if a faceSet is the same as a faceZone ... could someone help me, please?

Thanks!

Thomas
tehache is offline   Reply With Quote

Old   February 9, 2009, 06:09
Default Hallo Thomas i am at the sa
  #3
New Member
 
patrick riemer
Join Date: Mar 2009
Location: Uni Stuttgart, Germany
Posts: 19
Rep Power: 17
patriem is on a distinguished road
Hallo Thomas

i am at the same point right now. I have a moving mesh with an oscillating plate. This patch is a wall, called plate. My mesh is deforming too much, so i need layer addition/removal.

It's important for me to solve that problem soon because i have to finish a thesis work.

I would be very thankful for some help.
I use 1.4.1-dev

- Do i need a file called meshModifiers in /constant? How do i introduce such faces rightExtrusionFace and leftExtrusionFace? What are they for?

- In the dynamicMeshDict:
How do i recompile movingConeTopoFvMesh.C for the case that i need another motion.
Desired function: u = dx/dt = VelAmplitude * cos(2*pi*freq*t) = VelAmp * cos(pi*t/VelPeriod)
In movingConeTopoFvMesh.C:
VelAmplitude * sin(t*pi/VelPeriod)
patriem is offline   Reply With Quote

Old   February 20, 2009, 06:36
Default Hello, I would need the same
  #4
Member
 
Virginie Ehrlacher
Join Date: Mar 2009
Posts: 52
Rep Power: 17
virginie_e is on a distinguished road
Hello,
I would need the same kind of advice: how do we use the meshModifiers? I have added a meshModifier file in constant/polymesh, however teh solver does not seem to take it into account.
Do I need another line of code to have it understand that I want the meshmodifier to be used?

I am using the last version of OpenFOAM-1.5-dev (on svn) and I am working with the solver InterTrackFoam to simulate the flow of a viscous liquid over a slope.

Thank you in advance.

Virginie
virginie_e is offline   Reply With Quote

Old   February 20, 2009, 07:24
Default You will need to write your ow
  #5
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,907
Rep Power: 33
hjasak will become famous soon enough
You will need to write your own topoChangerFvMesh class, which will incorporate mesh motion and mesh modifiers. There's plenty of examples in the library.

Hrv
__________________
Hrvoje Jasak
Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk
hjasak is offline   Reply With Quote

Old   March 31, 2010, 06:22
Default
  #6
Member
 
Wolfgang W.
Join Date: Nov 2009
Location: Switzerland
Posts: 57
Rep Power: 17
WiWo is on a distinguished road
Hello to you all,

I was wondering if one of you has had success in implementing a new topoChangerFvMesh class - especially with regard to merging layerAdditionRemoval and dynamic mesh motion.
I'm working on a problem which seems to resemble the one Patrick described very closely - I just use an expanding circular membrane instead of a plate.

I'm playing around with the movingConeTopoFvMesh class at the moment, trying to figure out how I can adapt it to my problem. Still, I fear that for a recently started OpenFOAM rookie it might be difficult to fight through all this without advice - especially with regard to including the mesh motion as well.

I would very much appreciate if anyone could point me to helpful examples of similar topoChangerFvMesh classes, provide some code fragments or any other advice.

Best regards,
Wolfgang
Zhiheng Wang likes this.
WiWo 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
Create fine mesh that grows to coarse mesh (Urgent CZ FLUENT 1 January 3, 2009 11:36
Mesh motion independent mesh regions philippose OpenFOAM Running, Solving & CFD 12 August 5, 2008 17:16
Oscillatory mesh motion setup mesh flux ERROR jaswi OpenFOAM Running, Solving & CFD 5 August 23, 2007 05:41
Icemcfd 11: Loss of mesh from surface mesh option? Joe CFX 2 March 26, 2007 19:10
How to convert STAR mesh into FLUENT mesh ? Jihwan Siemens 8 November 10, 2004 05:11


All times are GMT -4. The time now is 22:10.