tutorials/multicomponentFluid/aachenBomb: Added Allrun-parallel with load-balancing

to demonstrate multi-constraint load-balancing with both Lagrangian and
chemistry.
This commit is contained in:
Henry Weller
2024-06-01 20:46:17 +01:00
parent 78dbbdd7d3
commit e727809bd1
17 changed files with 112 additions and 4 deletions

View File

@ -19,6 +19,8 @@ internalField uniform 0.766;
boundaryField
{
#includeEtc "caseDicts/setConstraintTypes"
walls
{
type zeroGradient;

View File

@ -19,6 +19,8 @@ internalField uniform 0.234;
boundaryField
{
#includeEtc "caseDicts/setConstraintTypes"
walls
{
type zeroGradient;

View File

@ -19,6 +19,8 @@ internalField uniform 800;
boundaryField
{
#includeEtc "caseDicts/setConstraintTypes"
walls
{
type zeroGradient;

View File

@ -19,6 +19,8 @@ internalField uniform (0 0 0);
boundaryField
{
#includeEtc "caseDicts/setConstraintTypes"
walls
{
type fixedValue;

View File

@ -19,6 +19,8 @@ internalField uniform 0;
boundaryField
{
#includeEtc "caseDicts/setConstraintTypes"
walls
{
type zeroGradient;

View File

@ -20,6 +20,8 @@ internalField uniform 0;
boundaryField
{
#includeEtc "caseDicts/setConstraintTypes"
walls
{
type compressible::alphatWallFunction;

View File

@ -20,6 +20,8 @@ internalField uniform 90;
boundaryField
{
#includeEtc "caseDicts/setConstraintTypes"
walls
{
type epsilonWallFunction;

View File

@ -20,6 +20,8 @@ internalField uniform 1;
boundaryField
{
#includeEtc "caseDicts/setConstraintTypes"
walls
{
type kqRWallFunction;

View File

@ -20,6 +20,8 @@ internalField uniform 0;
boundaryField
{
#includeEtc "caseDicts/setConstraintTypes"
walls
{
type nutkWallFunction;

View File

@ -19,6 +19,8 @@ internalField uniform 5e+06;
boundaryField
{
#includeEtc "caseDicts/setConstraintTypes"
walls
{
type zeroGradient;

View File

@ -4,14 +4,11 @@ cd ${0%/*} || exit 1 # Run from this directory
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
# Set application name
application=$(getApplication)
runApplication chemkinToFoam \
chemkin/chem.inp chemkin/therm.dat chemkin/transportProperties \
constant/reactions constant/speciesThermo
runApplication blockMesh
runApplication $application
runApplication $(getApplication)
#------------------------------------------------------------------------------

View File

@ -0,0 +1,17 @@
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
runApplication chemkinToFoam \
chemkin/chem.inp chemkin/therm.dat chemkin/transportProperties \
constant/reactions constant/speciesThermo
runApplication blockMesh
runApplication decomposePar
runParallel $(getApplication)
runApplication reconstructPar
#------------------------------------------------------------------------------

View File

@ -21,6 +21,8 @@ chemistryType
chemistry on;
cpuLoad true;
initialChemicalTimeStep 1e-07;
odeCoeffs

View File

@ -16,6 +16,8 @@ FoamFile
type sprayCloud;
cpuLoad true;
solution
{
coupled true;

View File

@ -0,0 +1,27 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class dictionary;
object dynamicMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
distributor
{
type loadBalancer;
libs ("libfvMeshDistributors.so");
multiConstraint true;
redistributionInterval 20;
}
// ************************************************************************* //

View File

@ -47,6 +47,12 @@ boundary
(3 2 1 0)
);
}
internalFaces
{
type internal;
faces ();
}
);

View File

@ -0,0 +1,37 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class dictionary;
location "system";
object decomposeParDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
numberOfSubdomains 12;
decomposer simple;
distributor zoltan;
libs ("libzoltanDecomp.so");
// distributor parMetis;
// libs ("libparMetisDecomp.so");
simpleCoeffs
{
n (2 2 3);
}
zoltanCoeffs
{
lb_method rcb;
}
// ************************************************************************* //