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
{
type inletOutlet;
inletValue uniform 0;
value uniform 0;
type zeroGradient;
}
frontAndBack

View File

@ -27,9 +27,7 @@ boundaryField
outlet
{
type inletOutlet;
inletValue uniform 1;
value uniform 0;
type zeroGradient;
}
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
{
interfaceHeight1
{
// Mandatory entries
type interfaceHeight;
libs (fieldFunctionObjects);
locations ((0 0 0));
locations ((0 0 1e-5));
// Optional entries
alpha alpha.liquid;
@ -82,6 +83,7 @@ functions
writeControl timeStep;
writeInterval 3;
}
}

View File

@ -18,6 +18,6 @@ FoamFile
field "alpha.gas";
type plane;
origin (0.503e-3 0 0);
direction (1 0 0);
normal (-1 0 0);
// ************************************************************************* //

View File

@ -18,6 +18,6 @@ FoamFile
field "alpha.gas";
type plane;
origin (0.503e-3 0 0);
direction (1 0 0);
normal (-1 0 0);
// ************************************************************************* //

View File

@ -18,6 +18,6 @@ FoamFile
field "alpha.liquid";
type plane;
origin (0.503e-3 0 0);
direction (-1 0 0);
normal (1 0 0);
// ************************************************************************* //

View File

@ -20,23 +20,10 @@ internalField uniform 1e5;
boundaryField
{
sideWalls
".*"
{
type fixedFluxPressure;
}
faceWall
{
type fixedFluxPressure;
}
outlet
{
//type fixedValue;
type totalPressure;
rho rho;
p0 uniform 1e5;
value uniform 1e5;
type calculated;
value uniform 1e5;
}
frontAndBack

View File

@ -15,9 +15,9 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
field "alpha.liquid";
type plane;
origin (0.503e-3 0 0);
direction (-1 0 0);
field "alpha.liquid";
type plane;
origin (0.503e-3 0 0);
normal (1 0 0);
// ************************************************************************* //