mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
TUT: Setting up tutorials for change on planeImplicit function
This commit is contained in:
@ -27,9 +27,7 @@ boundaryField
|
|||||||
|
|
||||||
outlet
|
outlet
|
||||||
{
|
{
|
||||||
type inletOutlet;
|
type zeroGradient;
|
||||||
inletValue uniform 0;
|
|
||||||
value uniform 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
frontAndBack
|
frontAndBack
|
||||||
|
|||||||
@ -27,9 +27,7 @@ boundaryField
|
|||||||
|
|
||||||
outlet
|
outlet
|
||||||
{
|
{
|
||||||
type inletOutlet;
|
type zeroGradient;
|
||||||
inletValue uniform 1;
|
|
||||||
value uniform 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
frontAndBack
|
frontAndBack
|
||||||
|
|||||||
@ -1,48 +0,0 @@
|
|||||||
/*--------------------------------*- C++ -*----------------------------------*\
|
|
||||||
| ========= | |
|
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
|
||||||
| \\ / O peration | Version: v1912 |
|
|
||||||
| \\ / A nd | Website: www.openfoam.com |
|
|
||||||
| \\/ M anipulation | |
|
|
||||||
\*---------------------------------------------------------------------------*/
|
|
||||||
FoamFile
|
|
||||||
{
|
|
||||||
version 2.0;
|
|
||||||
format ascii;
|
|
||||||
class volScalarField;
|
|
||||||
object p;
|
|
||||||
}
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
dimensions [1 -1 -2 0 0 0 0];
|
|
||||||
|
|
||||||
internalField uniform 1e5;
|
|
||||||
|
|
||||||
boundaryField
|
|
||||||
{
|
|
||||||
sideWalls
|
|
||||||
{
|
|
||||||
type fixedFluxPressure;
|
|
||||||
}
|
|
||||||
|
|
||||||
faceWall
|
|
||||||
{
|
|
||||||
type fixedFluxPressure;
|
|
||||||
}
|
|
||||||
|
|
||||||
outlet
|
|
||||||
{
|
|
||||||
//type fixedValue;
|
|
||||||
type totalPressure;
|
|
||||||
rho rho;
|
|
||||||
p0 uniform 1e5;
|
|
||||||
value uniform 1e5;
|
|
||||||
}
|
|
||||||
|
|
||||||
frontAndBack
|
|
||||||
{
|
|
||||||
type empty;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
|
||||||
@ -54,12 +54,13 @@ maxAlphaDdt 0.01;
|
|||||||
|
|
||||||
functions
|
functions
|
||||||
{
|
{
|
||||||
|
|
||||||
interfaceHeight1
|
interfaceHeight1
|
||||||
{
|
{
|
||||||
// Mandatory entries
|
// Mandatory entries
|
||||||
type interfaceHeight;
|
type interfaceHeight;
|
||||||
libs (fieldFunctionObjects);
|
libs (fieldFunctionObjects);
|
||||||
locations ((0 0 0));
|
locations ((0 0 1e-5));
|
||||||
|
|
||||||
// Optional entries
|
// Optional entries
|
||||||
alpha alpha.liquid;
|
alpha alpha.liquid;
|
||||||
@ -82,6 +83,7 @@ functions
|
|||||||
writeControl timeStep;
|
writeControl timeStep;
|
||||||
writeInterval 3;
|
writeInterval 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -18,6 +18,6 @@ FoamFile
|
|||||||
field "alpha.gas";
|
field "alpha.gas";
|
||||||
type plane;
|
type plane;
|
||||||
origin (0.503e-3 0 0);
|
origin (0.503e-3 0 0);
|
||||||
direction (1 0 0);
|
normal (-1 0 0);
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -18,6 +18,6 @@ FoamFile
|
|||||||
field "alpha.gas";
|
field "alpha.gas";
|
||||||
type plane;
|
type plane;
|
||||||
origin (0.503e-3 0 0);
|
origin (0.503e-3 0 0);
|
||||||
direction (1 0 0);
|
normal (-1 0 0);
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -18,6 +18,6 @@ FoamFile
|
|||||||
field "alpha.liquid";
|
field "alpha.liquid";
|
||||||
type plane;
|
type plane;
|
||||||
origin (0.503e-3 0 0);
|
origin (0.503e-3 0 0);
|
||||||
direction (-1 0 0);
|
normal (1 0 0);
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -20,23 +20,10 @@ internalField uniform 1e5;
|
|||||||
|
|
||||||
boundaryField
|
boundaryField
|
||||||
{
|
{
|
||||||
sideWalls
|
".*"
|
||||||
{
|
{
|
||||||
type fixedFluxPressure;
|
type calculated;
|
||||||
}
|
value uniform 1e5;
|
||||||
|
|
||||||
faceWall
|
|
||||||
{
|
|
||||||
type fixedFluxPressure;
|
|
||||||
}
|
|
||||||
|
|
||||||
outlet
|
|
||||||
{
|
|
||||||
//type fixedValue;
|
|
||||||
type totalPressure;
|
|
||||||
rho rho;
|
|
||||||
p0 uniform 1e5;
|
|
||||||
value uniform 1e5;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
frontAndBack
|
frontAndBack
|
||||||
|
|||||||
@ -15,9 +15,9 @@ FoamFile
|
|||||||
}
|
}
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
field "alpha.liquid";
|
field "alpha.liquid";
|
||||||
type plane;
|
type plane;
|
||||||
origin (0.503e-3 0 0);
|
origin (0.503e-3 0 0);
|
||||||
direction (-1 0 0);
|
normal (1 0 0);
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
Reference in New Issue
Block a user