Skip to content

Commit

Permalink
add coflowing bubble column case
Browse files Browse the repository at this point in the history
  • Loading branch information
malihass committed May 24, 2024
1 parent df72e44 commit 965228d
Show file tree
Hide file tree
Showing 44 changed files with 2,412 additions and 0 deletions.
15 changes: 15 additions & 0 deletions OFsolvers/tutorial_cases/coflowing_column/Allclean
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory

# Source tutorial clean functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions

# Remove surface, features and solution
#rm -rf constant/extendedFeatureEdgeMesh > /dev/null 2>&1
#rm -f constant/triSurface/*.eMesh > /dev/null 2>&1
#rm -rf constant/polyMesh > /dev/null 2>&1
#rm -rf processor* > /dev/null 2>&1
rm -rf 0
cleanCase
rm system/blockMeshDict
#------------------------------------------------------------------------------
42 changes: 42 additions & 0 deletions OFsolvers/tutorial_cases/coflowing_column/IC/0/CO2.gas
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
/*--------------------------------*- 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 CO2.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 $f_CO2;
}

outlet
{
type zeroGradient;
}

walls
{
type zeroGradient;
}
}

// ************************************************************************* //
41 changes: 41 additions & 0 deletions OFsolvers/tutorial_cases/coflowing_column/IC/0/CO2.liquid
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
/*--------------------------------*- 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 CO2.liquid;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions [0 0 0 0 0 0 0];

internalField uniform 0.0;

boundaryField
{
#includeEtc "caseDicts/setConstraintTypes"

inlet
{
type fixedValue;
value $internalField;
}

outlet
{
type zeroGradient;
}

walls
{
type zeroGradient;
}
}

// ************************************************************************* //
42 changes: 42 additions & 0 deletions OFsolvers/tutorial_cases/coflowing_column/IC/0/N2.gas
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
/*--------------------------------*- 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.0;

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

boundaryField
{
#includeEtc "caseDicts/setConstraintTypes"

inlet
{
type fixedValue;
value uniform $f_N2;
}

outlet
{
type zeroGradient;
}

walls
{
type zeroGradient;
}
}

// ************************************************************************* //
41 changes: 41 additions & 0 deletions OFsolvers/tutorial_cases/coflowing_column/IC/0/T.gas
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
/*--------------------------------*- 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];

internalField uniform 273.15;

boundaryField
{
#includeEtc "caseDicts/setConstraintTypes"

inlet
{
type fixedValue;
value $internalField;
}

outlet
{
type zeroGradient;
}

walls
{
type zeroGradient;
}
}

// ************************************************************************* //
41 changes: 41 additions & 0 deletions OFsolvers/tutorial_cases/coflowing_column/IC/0/T.liquid
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
/*--------------------------------*- 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];

internalField uniform 287.15;

boundaryField
{
#includeEtc "caseDicts/setConstraintTypes"

inlet
{
type fixedValue;
value $internalField;
}

outlet
{
type zeroGradient;
}

walls
{
type zeroGradient;
}
}

// ************************************************************************* //
49 changes: 49 additions & 0 deletions OFsolvers/tutorial_cases/coflowing_column/IC/0/U.gas
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
/*--------------------------------*- 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;
//massFlowRate $mflowRateGas;
//rho thermo:rho.gas;
//value $internalField;
type fixedValue;
value uniform (0 $uGasPhase 0);
}

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

walls
{
type slip;
}
}

// ************************************************************************* //
49 changes: 49 additions & 0 deletions OFsolvers/tutorial_cases/coflowing_column/IC/0/U.liquid
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
/*--------------------------------*- 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];

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

internalField uniform (0 $uLiqPhase 0);

boundaryField
{
#includeEtc "caseDicts/setConstraintTypes"

inlet
{
//type flowRateInletVelocity;
//massFlowRate $mflowRateLiq;
//rho thermo:rho.liquid;
//value $internalField;
type fixedValue;
value uniform (0 $uLiqPhase 0);
}
outlet
{
type pressureInletOutletVelocity;
phi phi.liquid;
value $internalField;
}
walls
{
type noSlip;
}
}


// ************************************************************************* //
42 changes: 42 additions & 0 deletions OFsolvers/tutorial_cases/coflowing_column/IC/0/Ydefault.gas
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
/*--------------------------------*- 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 zeroGradient;
}

walls
{
type zeroGradient;
}
}


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

0 comments on commit 965228d

Please sign in to comment.