Skip to content

Commit

Permalink
Merge pull request #89 from NREL/airlift
Browse files Browse the repository at this point in the history
added airlift tutorial case
  • Loading branch information
malihass authored Jan 29, 2025
2 parents 9ad3ac3 + 5a4cd81 commit e9a5222
Show file tree
Hide file tree
Showing 42 changed files with 3,638 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -171,3 +171,9 @@ jobs:
cd tutorial_cases/loop_reactor_mixing
bash run.sh
cd ../../
- name: Run airlift reactor tutorial
run: |
cd tutorial_cases/airlift_40m
bash run.sh
cd ../../
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 1;
}

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

0 comments on commit e9a5222

Please sign in to comment.