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

move wall and refine mesh at fluid interface

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 11, 2011, 10:38
Default move wall and refine mesh at fluid interface
  #1
New Member
 
Paolo
Join Date: Nov 2011
Posts: 7
Rep Power: 15
Jimbomet is on a distinguished road
I'm trying to solve a multiphase problem with a wall that simply moves in x direction, using interDyMFoam and I used, in the dynamicMeshDict :

dynamicFvMesh dynamicMotionSolverFvMesh;
motionSolverLibs ( "libfvMotionSolvers.so" );
solver velocityComponentLaplacian x;
diffusivity directional (200 1 0)

but now I want to introduce also a refinement of the mesh near to the interface of two fluids, say in the same file:

dynamicFvMesh dynamicRefineFvMesh;
dynamicRefineFvMeshCoeffs
{
refineInterval 1;
field alpha1;
lowerRefineLevel 0.001;
upperRefineLevel 0.999;
unrefineLevel 10;
nBufferLayers 1;
maxRefinement 2;
maxCells 500000;
correctFluxes
(
(phi
U)
);
dumpLevel true;
}

and I don't know how to impose the two different dynamic meshing together...can someone give me an idea?? thanks a lot, I can't solve this problem ...
Jimbomet is offline   Reply With Quote

Old   March 4, 2014, 14:00
Default
  #2
Member
 
Join Date: Feb 2014
Posts: 34
Rep Power: 12
Prosper is on a distinguished road
Same question!!!

Quote:
Originally Posted by Jimbomet View Post
I'm trying to solve a multiphase problem with a wall that simply moves in x direction, using interDyMFoam and I used, in the dynamicMeshDict :

dynamicFvMesh dynamicMotionSolverFvMesh;
motionSolverLibs ( "libfvMotionSolvers.so" );
solver velocityComponentLaplacian x;
diffusivity directional (200 1 0)

but now I want to introduce also a refinement of the mesh near to the interface of two fluids, say in the same file:

dynamicFvMesh dynamicRefineFvMesh;
dynamicRefineFvMeshCoeffs
{
refineInterval 1;
field alpha1;
lowerRefineLevel 0.001;
upperRefineLevel 0.999;
unrefineLevel 10;
nBufferLayers 1;
maxRefinement 2;
maxCells 500000;
correctFluxes
(
(phi
U)
);
dumpLevel true;
}

and I don't know how to impose the two different dynamic meshing together...can someone give me an idea?? thanks a lot, I can't solve this problem ...
Prosper is offline   Reply With Quote

Old   March 4, 2014, 14:29
Default
  #3
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings to all!

I don't think OpenFOAM has this implemented yet. Well, at least not in interDyMFoam.

In theory, it's just a matter of creating a custom solver based on interDyMFoam, adding code for performing a second dynamic mesh operation, on top of the first one.

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   March 4, 2014, 14:33
Default
  #4
Member
 
Join Date: Feb 2014
Posts: 34
Rep Power: 12
Prosper is on a distinguished road
Thanks! Will try that.

Quote:
Originally Posted by wyldckat View Post
Greetings to all!

I don't think OpenFOAM has this implemented yet. Well, at least not in interDyMFoam.

In theory, it's just a matter of creating a custom solver based on interDyMFoam, adding code for performing a second dynamic mesh operation, on top of the first one.

Best regards,
Bruno
Prosper is offline   Reply With Quote

Old   October 17, 2014, 13:12
Default
  #5
New Member
 
Ral Bielawski
Join Date: Oct 2014
Posts: 3
Rep Power: 12
BielawskiR is on a distinguished road
Will that method only work with r-refinment where the number of cells does not change?
BielawskiR is offline   Reply With Quote

Old   October 18, 2014, 14:16
Default
  #6
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings BielawskiR and welcome to the forum!

Quote:
Originally Posted by BielawskiR View Post
Will that method only work with r-refinment where the number of cells does not change?
Sorry, but I don't understand what exactly you're asking about. Can you please be more specific?

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   December 4, 2014, 14:17
Default
  #7
New Member
 
Ral Bielawski
Join Date: Oct 2014
Posts: 3
Rep Power: 12
BielawskiR is on a distinguished road
When the number of cells changes you often have to edit the solver/utility because a lot of them were written with the assumption that the number of cells is constant.

For example I was just working on getting ACMI to work with mesh refinement and mesh motion. To make them work together you need to have it use the most recent data for all ACMI boundaries. In the default algorithm it only looks at the current size of one boundary and if the other boundaries have new cells it fails.

However mesh motion and refinement both edit the points so they may work out of the box together.

I think this is a little bit more clear.
BielawskiR 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
Convergence problem when refine the mesh... TB CFX 37 May 13, 2019 19:50
[mesh manipulation] Wall mesh refinement based on y+ Hrushi OpenFOAM Meshing & Mesh Conversion 1 July 9, 2017 07:06
[ANSYS Meshing] refining mesh near wall icemaniac178 ANSYS Meshing & Geometry 1 June 1, 2016 03:48
Mesh Refinement JY Siemens 7 September 19, 2002 14:37
Questions about CFD Lebeau alexandre Main CFD Forum 1 April 6, 1999 15:23


All times are GMT -4. The time now is 19:25.