Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added airlift tutorial case #89

Merged
merged 4 commits into from
Jan 29, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions tutorial_cases/airlift_40m/0.org/H2O.liquid
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 9
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class volScalarField;
object water.liquid;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions [0 0 0 0 0 0 0];

internalField uniform 1;

boundaryField
{
#includeEtc "caseDicts/setConstraintTypes"

inlet
{
type fixedValue;
value $internalField;
}

outlet
{
type inletOutlet;
phi phi.liquid;
inletValue $internalField;
value $internalField;
}

walls
{
type zeroGradient;
}
}

// ************************************************************************* //
44 changes: 44 additions & 0 deletions tutorial_cases/airlift_40m/0.org/N2.gas
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 9
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class volScalarField;
object N2.gas;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions [0 0 0 0 0 0 0];

internalField uniform 1;

boundaryField
{
#includeEtc "caseDicts/setConstraintTypes"

inlet
{
type fixedValue;
value uniform 0.77;
}

outlet
{
type inletOutlet;
phi phi.gas;
inletValue uniform 0;
value uniform 0;
}

walls
{
type zeroGradient;
}
}

// ************************************************************************* //
45 changes: 45 additions & 0 deletions tutorial_cases/airlift_40m/0.org/O2.gas
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 9
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class volScalarField;
object O2.gas;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 0 0 0 0 0 0];

internalField uniform 0.0;

#include "${FOAM_CASE}/constant/globalVars"

boundaryField
{
#includeEtc "caseDicts/setConstraintTypes"

inlet
{
type fixedValue;
value uniform 0.23;
}

outlet
{
type inletOutlet;
phi phi.gas;
inletValue uniform 0;
value uniform 0;
}

walls
{
type zeroGradient;
}
}

// ************************************************************************* //
47 changes: 47 additions & 0 deletions tutorial_cases/airlift_40m/0.org/T.gas
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 9
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class volScalarField;
object T.gas;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions [0 0 0 1 0 0 0];

#include "${FOAM_CASE}/constant/globalVars"

internalField uniform $T0;

boundaryField
{
#includeEtc "caseDicts/setConstraintTypes"

inlet
{
type fixedValue;
value $internalField;
}

outlet
{
type inletOutlet;
phi phi.gas;
inletValue $internalField;
value $internalField;
}

walls
{
type zeroGradient;
}

}

// ************************************************************************* //
47 changes: 47 additions & 0 deletions tutorial_cases/airlift_40m/0.org/T.liquid
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 9
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class volScalarField;
object T.liquid;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions [0 0 0 1 0 0 0];

#include "${FOAM_CASE}/constant/globalVars"

internalField uniform $T0;

boundaryField
{
#includeEtc "caseDicts/setConstraintTypes"

inlet
{
type zeroGradient; // As the inlet is only gas we can use zerograd for T.liq
// type fixedValue;
// value $internalField;
}

outlet
{
type inletOutlet;
phi phi.liquid;
inletValue $internalField;
value $internalField;
}

walls
{
type zeroGradient;
}
}

// ************************************************************************* //
45 changes: 45 additions & 0 deletions tutorial_cases/airlift_40m/0.org/U.gas
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 9
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class volVectorField;
object U.gas;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions [0 1 -1 0 0 0 0];

internalField uniform (0 0 0);

#include "${FOAM_CASE}/constant/globalVars"

boundaryField
{
#includeEtc "caseDicts/setConstraintTypes"

inlet
{
type flowRateInletVelocity;
volumetricFlowRate $V_flowRate;
}

outlet
{
type pressureInletOutletVelocity;
phi phi.gas;
value $internalField;
}

walls
{
type slip;
}
}

// ************************************************************************* //
43 changes: 43 additions & 0 deletions tutorial_cases/airlift_40m/0.org/U.liquid
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 9
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2;
format ascii;
class volVectorField;
object U.liquid;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions [0 1 -1 0 0 0 0];

internalField uniform (0 0 0);

boundaryField
{
#includeEtc "caseDicts/setConstraintTypes"

inlet
{
type fixedValue;
value $internalField;
}
outlet
{
type pressureInletOutletVelocity;
phi phi.liquid;
value $internalField;
}
walls
{
type noSlip;
}
}


// ************************************************************************* //
45 changes: 45 additions & 0 deletions tutorial_cases/airlift_40m/0.org/Ydefault.gas
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 9
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class volScalarField;
object Ydefault.gas;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions [0 0 0 0 0 0 0];

internalField uniform 0.0;

boundaryField
{
#includeEtc "caseDicts/setConstraintTypes"

inlet
{
type fixedValue;
value uniform 0.0;
}

outlet
{
type inletOutlet;
phi phi.gas;
inletValue $internalField;
value $internalField;
}

walls
{
type zeroGradient;
}
}


// ************************************************************************* //
Loading