mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
tutorials/multiphase/interDyMFoam/ras/damBreakWithObstacle: Added alphaPhi to correctFluxes
Resolves bug-report http://www.openfoam.org/mantisbt/view.php?id=2062
This commit is contained in:
@ -21,19 +21,26 @@ dynamicRefineFvMeshCoeffs
|
|||||||
{
|
{
|
||||||
// How often to refine
|
// How often to refine
|
||||||
refineInterval 1;
|
refineInterval 1;
|
||||||
|
|
||||||
// Field to be refinement on
|
// Field to be refinement on
|
||||||
field alpha.water;
|
field alpha.water;
|
||||||
|
|
||||||
// Refine field inbetween lower..upper
|
// Refine field inbetween lower..upper
|
||||||
lowerRefineLevel 0.001;
|
lowerRefineLevel 0.001;
|
||||||
upperRefineLevel 0.999;
|
upperRefineLevel 0.999;
|
||||||
|
|
||||||
// If value < unrefineLevel unrefine
|
// If value < unrefineLevel unrefine
|
||||||
unrefineLevel 10;
|
unrefineLevel 10;
|
||||||
|
|
||||||
// Have slower than 2:1 refinement
|
// Have slower than 2:1 refinement
|
||||||
nBufferLayers 1;
|
nBufferLayers 1;
|
||||||
|
|
||||||
// Refine cells only up to maxRefinement levels
|
// Refine cells only up to maxRefinement levels
|
||||||
maxRefinement 2;
|
maxRefinement 2;
|
||||||
|
|
||||||
// Stop refinement if maxCells reached
|
// Stop refinement if maxCells reached
|
||||||
maxCells 200000;
|
maxCells 200000;
|
||||||
|
|
||||||
// Flux field and corresponding velocity field. Fluxes on changed
|
// Flux field and corresponding velocity field. Fluxes on changed
|
||||||
// faces get recalculated by interpolating the velocity. Use 'none'
|
// faces get recalculated by interpolating the velocity. Use 'none'
|
||||||
// on surfaceScalarFields that do not need to be reinterpolated.
|
// on surfaceScalarFields that do not need to be reinterpolated.
|
||||||
@ -42,8 +49,10 @@ dynamicRefineFvMeshCoeffs
|
|||||||
(phi none)
|
(phi none)
|
||||||
(nHatf none)
|
(nHatf none)
|
||||||
(rhoPhi none)
|
(rhoPhi none)
|
||||||
|
(alphaPhi none)
|
||||||
(ghf none)
|
(ghf none)
|
||||||
);
|
);
|
||||||
|
|
||||||
// Write the refinement level as a volScalarField
|
// Write the refinement level as a volScalarField
|
||||||
dumpLevel true;
|
dumpLevel true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user