move wall and refine mesh at fluid interface
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 :
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:
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 ...
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.
Thanks! Will try that.
Will that method only work with r-refinment where the number of cells does not change?
Greetings BielawskiR and welcome to the forum!
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.
|All times are GMT -4. The time now is 10:11.|