TUT: Setting up tutorials for change on planeImplicit function

This commit is contained in:
sergio
2020-06-11 12:53:49 -07:00
parent c712abad09
commit ffa7bfb4f5
9 changed files with 15 additions and 78 deletions

View File

@ -27,9 +27,7 @@ boundaryField
outlet outlet
{ {
type inletOutlet; type zeroGradient;
inletValue uniform 0;
value uniform 0;
} }
frontAndBack frontAndBack

View File

@ -27,9 +27,7 @@ boundaryField
outlet outlet
{ {
type inletOutlet; type zeroGradient;
inletValue uniform 1;
value uniform 0;
} }
frontAndBack frontAndBack

View File

@ -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;
}
}
// ************************************************************************* //

View File

@ -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;
} }
} }

View File

@ -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);
// ************************************************************************* // // ************************************************************************* //

View File

@ -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);
// ************************************************************************* // // ************************************************************************* //

View File

@ -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);
// ************************************************************************* // // ************************************************************************* //

View File

@ -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

View File

@ -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);
// ************************************************************************* // // ************************************************************************* //