CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Programming & Development

Dynamic Mesh Refinement - Sizes of two fields differ

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   July 4, 2013, 10:54
Default Dynamic Mesh Refinement - Sizes of two fields differ
Nicklas Linder
Join Date: Jul 2012
Location: Germany
Posts: 35
Rep Power: 7
nlinder is on a distinguished road
Hi Foamers,

I am using (a modified) interDyMFoam solver. After all the meshMovement stuff, or just before "twoPhaseProperties.correct();" is called, I make some calculations. One of them is
scalarField Ca = mag(mup)*mag(uwall)/sigma;
scalarField mup = mu.boundaryField()[wallPatchID];
and uwall derives from (normalized form of the following Uwall)
vectorField Uwall = U.boundaryField()[wallPatchID];

This works fine without dynamic mesh refinement. When I do the same calculation with dynamic mesh refinement, the size of the fields differ if the mesh is refined. Or more precisely: The size of uwall relates to the refined mesh, mu remains unchanged.

Mu is created in createFields.H as
    volScalarField mu
Does anyone know how I can tell mu, that the mesh has been refined and it needs to be updated?

Thanks for any hints!

nlinder is offline   Reply With Quote


Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 06:20
Dynamic mesh, interDymFoam : refinement on 2 fields tek_cfd OpenFOAM Pre-Processing 1 May 30, 2013 03:07
How to know mesh size after dynamic refinement tayo OpenFOAM 16 May 22, 2013 13:39
Adding layers goes wrong with SnappyHexMesh Elise OpenFOAM Native Meshers: snappyHexMesh and Others 1 April 22, 2013 02:32
external flow with snappyHexMesh chelvistero OpenFOAM 11 January 15, 2010 20:43

All times are GMT -4. The time now is 05:58.