mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
TUT: clean up multiphase tutorials
This commit is contained in:
@ -38,16 +38,19 @@ boundaryField
|
||||
type pressureInletOutletVelocity;
|
||||
value uniform (0 0 0);
|
||||
}
|
||||
|
||||
sidePatch
|
||||
{
|
||||
type pressureInletOutletVelocity;
|
||||
value uniform (0 0 0);
|
||||
}
|
||||
|
||||
atmosphere
|
||||
{
|
||||
type pressureInletOutletVelocity;
|
||||
value uniform (0 0 0);
|
||||
}
|
||||
|
||||
floatingObject
|
||||
{
|
||||
type movingWallVelocity;
|
||||
|
||||
@ -39,12 +39,14 @@ boundaryField
|
||||
upperBound 1;
|
||||
value uniform 0;
|
||||
}
|
||||
|
||||
atmosphere
|
||||
{
|
||||
type inletOutlet;
|
||||
inletValue uniform 0;
|
||||
value uniform 0;
|
||||
}
|
||||
|
||||
floatingObject
|
||||
{
|
||||
// type variableHeightFlowRate;
|
||||
@ -53,6 +55,7 @@ boundaryField
|
||||
// value uniform 0;
|
||||
type zeroGradient;
|
||||
}
|
||||
|
||||
sidePatch
|
||||
{
|
||||
type variableHeightFlowRate;
|
||||
|
||||
@ -28,24 +28,25 @@ boundaryField
|
||||
inletValue uniform 0.1;
|
||||
value uniform 0.1;
|
||||
}
|
||||
|
||||
"(atmosphere|sidePatch)"
|
||||
{
|
||||
type inletOutlet;
|
||||
inletValue uniform 0.1;
|
||||
value uniform 0.1;
|
||||
}
|
||||
|
||||
floatingObject
|
||||
{
|
||||
type epsilonWallFunction;
|
||||
Cmu 0.09;
|
||||
kappa 0.41;
|
||||
E 9.8;
|
||||
value uniform 0.1;
|
||||
}
|
||||
|
||||
overset
|
||||
{
|
||||
type overset;
|
||||
}
|
||||
|
||||
oversetPatch
|
||||
{
|
||||
type overset;
|
||||
|
||||
@ -24,25 +24,29 @@ boundaryField
|
||||
|
||||
stationaryWalls
|
||||
{
|
||||
type inletOutlet;
|
||||
type inletOutlet;
|
||||
inletValue uniform 0.01;
|
||||
value uniform 0.01;
|
||||
}
|
||||
|
||||
"(atmosphere|sidePatch)"
|
||||
{
|
||||
type inletOutlet;
|
||||
inletValue uniform 0.01;
|
||||
value uniform 0.01;
|
||||
}
|
||||
|
||||
floatingObject
|
||||
{
|
||||
type kqRWallFunction;
|
||||
value uniform 0.01;
|
||||
}
|
||||
|
||||
overset
|
||||
{
|
||||
type overset;
|
||||
}
|
||||
|
||||
oversetPatch
|
||||
{
|
||||
type overset;
|
||||
|
||||
@ -27,24 +27,25 @@ boundaryField
|
||||
type calculated;
|
||||
value uniform 0;
|
||||
}
|
||||
|
||||
"(atmosphere|sidePatch)"
|
||||
{
|
||||
type calculated;
|
||||
value uniform 0;
|
||||
}
|
||||
|
||||
floatingObject
|
||||
{
|
||||
type nutkWallFunction;
|
||||
Cmu 0.09;
|
||||
kappa 0.41;
|
||||
E 9.8;
|
||||
value uniform 0;
|
||||
}
|
||||
|
||||
overset
|
||||
{
|
||||
patchType overset;
|
||||
type zeroGradient;
|
||||
}
|
||||
|
||||
oversetPatch
|
||||
{
|
||||
type overset;
|
||||
|
||||
@ -24,10 +24,12 @@ boundaryField
|
||||
{
|
||||
type overset;
|
||||
}
|
||||
|
||||
"(stationaryWalls|sidePatch)"
|
||||
{
|
||||
type fixedFluxPressure;
|
||||
}
|
||||
|
||||
atmosphere
|
||||
{
|
||||
type totalPressure;
|
||||
@ -39,10 +41,12 @@ boundaryField
|
||||
gamma 1;
|
||||
value uniform 0;
|
||||
}
|
||||
|
||||
floatingObject
|
||||
{
|
||||
type fixedFluxPressure;
|
||||
}
|
||||
|
||||
overset
|
||||
{
|
||||
patchType overset;
|
||||
|
||||
@ -27,21 +27,25 @@ boundaryField
|
||||
type calculated;
|
||||
value uniform (0 0 0);
|
||||
}
|
||||
|
||||
"(atmosphere|sidePatch)"
|
||||
{
|
||||
type calculated;
|
||||
value uniform (0 0 0);
|
||||
}
|
||||
|
||||
floatingObject
|
||||
{
|
||||
type calculated;
|
||||
value uniform (0 0 0);
|
||||
}
|
||||
|
||||
oversetPatch
|
||||
{
|
||||
patchType overset;
|
||||
type zeroGradient;
|
||||
}
|
||||
|
||||
sides
|
||||
{
|
||||
patchType overset;
|
||||
|
||||
@ -26,15 +26,18 @@ boundaryField
|
||||
{
|
||||
type zeroGradient;
|
||||
}
|
||||
|
||||
atmosphere
|
||||
{
|
||||
type zeroGradient;
|
||||
}
|
||||
|
||||
floatingObject
|
||||
{
|
||||
type zeroGradient;
|
||||
}
|
||||
oversetPatch
|
||||
|
||||
oversetPatch
|
||||
{
|
||||
patchType overset;
|
||||
type zeroGradient;
|
||||
|
||||
@ -19,17 +19,17 @@ phases (water air);
|
||||
water
|
||||
{
|
||||
transportModel Newtonian;
|
||||
nu nu [ 0 2 -1 0 0 0 0 ] 1e-06;
|
||||
rho rho [ 1 -3 0 0 0 0 0 ] 998.2;
|
||||
nu 1e-06;
|
||||
rho 998.2;
|
||||
}
|
||||
|
||||
air
|
||||
{
|
||||
transportModel Newtonian;
|
||||
nu nu [ 0 2 -1 0 0 0 0 ] 1.48e-05;
|
||||
rho rho [ 1 -3 0 0 0 0 0 ] 1;
|
||||
nu 1.48e-05;
|
||||
rho 1;
|
||||
}
|
||||
|
||||
sigma sigma [ 1 0 -2 0 0 0 0 ] 0.007;
|
||||
sigma 0.007;
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -39,14 +39,12 @@ edges
|
||||
|
||||
boundary
|
||||
(
|
||||
// Dummy patch to trigger overset interpolation before any other
|
||||
// bcs
|
||||
// Dummy patch to trigger overset interpolation before any other bcs
|
||||
oversetPatch
|
||||
{
|
||||
type overset;
|
||||
faces ();
|
||||
}
|
||||
|
||||
stationaryWalls
|
||||
{
|
||||
type wall;
|
||||
|
||||
@ -55,11 +55,10 @@ runTimeModifiable yes;
|
||||
adjustTimeStep yes;
|
||||
|
||||
maxCo 5.0;
|
||||
|
||||
maxAlphaCo 2.0;
|
||||
|
||||
maxDeltaT 0.1;
|
||||
|
||||
functions
|
||||
{
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -54,7 +54,7 @@ snGradSchemes
|
||||
|
||||
oversetInterpolation
|
||||
{
|
||||
method inverseDistance;//cellVolumeWeight
|
||||
method inverseDistance; //cellVolumeWeight
|
||||
}
|
||||
|
||||
oversetInterpolationSuppressed
|
||||
|
||||
@ -16,7 +16,6 @@ FoamFile
|
||||
|
||||
solvers
|
||||
{
|
||||
|
||||
"cellDisplacement.*"
|
||||
{
|
||||
solver PCG;
|
||||
|
||||
@ -25,14 +25,21 @@ regions
|
||||
boxToCell
|
||||
{
|
||||
box ( -100 -100 -100 ) ( 100 100 0.5368 );
|
||||
fieldValues ( volScalarFieldValue alpha.water 1 );
|
||||
fieldValues
|
||||
(
|
||||
volScalarFieldValue alpha.water 1
|
||||
);
|
||||
}
|
||||
|
||||
boxToFace
|
||||
{
|
||||
box ( -100 -100 -100 ) ( 100 100 0.5368 );
|
||||
fieldValues ( volScalarFieldValue alpha.water 1 );
|
||||
fieldValues
|
||||
(
|
||||
volScalarFieldValue alpha.water 1
|
||||
);
|
||||
}
|
||||
|
||||
/*
|
||||
boxToCell
|
||||
{
|
||||
@ -50,6 +57,7 @@ regions
|
||||
volScalarFieldValue zoneID 0
|
||||
);
|
||||
}
|
||||
|
||||
cellToCell
|
||||
{
|
||||
set c1;
|
||||
@ -59,7 +67,6 @@ regions
|
||||
volScalarFieldValue zoneID 1
|
||||
);
|
||||
}
|
||||
|
||||
);
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
Reference in New Issue
Block a user