mirror of
https://github.com/ParticulateFlow/CFDEMcoupling-PFM.git
synced 2025-12-08 06:37:44 +00:00
Made tutorial case for dynamic CZ ready for OF 6.
This commit is contained in:
@ -100,6 +100,8 @@ functions
|
||||
#include "probesDict";
|
||||
}
|
||||
|
||||
// OF 4
|
||||
/*
|
||||
cellObj1
|
||||
{
|
||||
type volRegion;
|
||||
@ -118,6 +120,27 @@ functions
|
||||
UsMean
|
||||
);
|
||||
}
|
||||
*/
|
||||
|
||||
// OF 6
|
||||
cellObj1
|
||||
{
|
||||
type volFieldValue;
|
||||
libs ("libfieldFunctionObjects.so");
|
||||
enabled true;
|
||||
writeControl timeStep;
|
||||
writeInterval 400;
|
||||
log true;
|
||||
writeFields false;
|
||||
regionType cellZone;
|
||||
name topReg;
|
||||
operation volAverage;
|
||||
|
||||
fields
|
||||
(
|
||||
UsMean
|
||||
);
|
||||
}
|
||||
|
||||
conditionalStop
|
||||
{
|
||||
|
||||
@ -15,21 +15,9 @@ FoamFile
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
// OF 4
|
||||
/*
|
||||
source1
|
||||
{
|
||||
type temperatureLimitsConstraint;
|
||||
selectionMode all;
|
||||
active true;
|
||||
|
||||
temperatureLimitsConstraintCoeffs
|
||||
{
|
||||
Tmin 288;
|
||||
Tmax 298;
|
||||
}
|
||||
}
|
||||
*/
|
||||
source1
|
||||
{
|
||||
type limitTemperature;
|
||||
active yes;
|
||||
@ -41,3 +29,18 @@ source1
|
||||
Tmax 313;
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
// OF 6
|
||||
source1
|
||||
{
|
||||
type limitTemperature;
|
||||
active yes;
|
||||
limitTemperatureCoeffs
|
||||
{
|
||||
active yes;
|
||||
selectionMode all;
|
||||
min 273;
|
||||
max 313;
|
||||
}
|
||||
}
|
||||
|
||||
@ -49,63 +49,6 @@ adjustTimeStep no;
|
||||
|
||||
functions
|
||||
{
|
||||
/*
|
||||
massFlux
|
||||
{
|
||||
// Load the library containing the 'coded' functionObject
|
||||
libs ("libutilityFunctionObjects.so");
|
||||
|
||||
type coded;
|
||||
|
||||
// Name of on-the-fly generated functionObject
|
||||
name weights;
|
||||
|
||||
codeOptions
|
||||
#{
|
||||
-I$(LIB_SRC)/finiteVolume/lnInclude \
|
||||
-I$(LIB_SRC)/meshTools/lnInclude
|
||||
#};
|
||||
|
||||
|
||||
codeExecute
|
||||
#{
|
||||
|
||||
const volScalarField& voidfraction = mesh().lookupObject<volScalarField>("voidfraction");
|
||||
const volScalarField& partRho = mesh().lookupObject<volScalarField>("partRho");
|
||||
const volVectorField& Us = mesh().lookupObject<volVectorField>("Us");
|
||||
|
||||
static autoPtr<volVectorField> massFluxField;
|
||||
|
||||
if(!massFluxField.valid())
|
||||
{
|
||||
Info << "Creating massFluxField" << nl;
|
||||
|
||||
massFluxField.set
|
||||
(
|
||||
new volVectorField
|
||||
(
|
||||
IOobject
|
||||
(
|
||||
"massFluxField",
|
||||
mesh().time().timeName(),
|
||||
Us.mesh(),
|
||||
IOobject::NO_READ,
|
||||
IOobject::AUTO_WRITE
|
||||
),
|
||||
(1.0-voidfraction)*partRho*Us
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
volVectorField &massFluxFieldRef = massFluxField();
|
||||
|
||||
massFluxFieldRef.checkIn();
|
||||
|
||||
massFluxFieldRef = (1.0-voidfraction)*partRho*Us;
|
||||
#};
|
||||
}
|
||||
*/
|
||||
|
||||
fieldAverage1
|
||||
{
|
||||
type fieldAverage;
|
||||
@ -163,7 +106,7 @@ massFlux
|
||||
|
||||
inflowL
|
||||
{
|
||||
type surfaceRegion;
|
||||
type surfaceFieldValue;
|
||||
libs ("libfieldFunctionObjects.so");
|
||||
writeControl timeStep;
|
||||
writeInterval 40;
|
||||
@ -193,26 +136,6 @@ massFlux
|
||||
$inflowL;
|
||||
name top;
|
||||
}
|
||||
|
||||
/* inflowLDens
|
||||
{
|
||||
type surfaceRegion;
|
||||
libs ("libfieldFunctionObjects.so");
|
||||
writeControl timeStep;
|
||||
writeInterval 10;
|
||||
log true;
|
||||
// Output field values as well
|
||||
writeFields false;
|
||||
regionType patch;
|
||||
name inletLeft;
|
||||
operation areaIntegrate;
|
||||
|
||||
fields
|
||||
(
|
||||
rho
|
||||
);
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -14,63 +14,32 @@ FoamFile
|
||||
object fvOptions;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
source1
|
||||
{
|
||||
type limitTemperature;
|
||||
active yes;
|
||||
limitTemperatureCoeffs
|
||||
{
|
||||
active yes;
|
||||
selectionMode all;
|
||||
Tmin 300;
|
||||
Tmax 2800;
|
||||
}
|
||||
}
|
||||
|
||||
source1
|
||||
{
|
||||
type limitTemperature;
|
||||
active yes;
|
||||
limitTemperatureCoeffs
|
||||
{
|
||||
active yes;
|
||||
selectionMode all;
|
||||
Tmin 300;
|
||||
Tmax 2800;
|
||||
}
|
||||
}
|
||||
|
||||
// OF 4
|
||||
/*
|
||||
RW_left
|
||||
source1
|
||||
{
|
||||
type fixedTemperatureConstraint;
|
||||
type limitTemperature;
|
||||
active yes;
|
||||
|
||||
fixedTemperatureConstraintCoeffs
|
||||
limitTemperatureCoeffs
|
||||
{
|
||||
// selectionMode cellZone;
|
||||
// cellZone raceway;
|
||||
selectionMode cellSet;
|
||||
cellSet rw_left;
|
||||
mode uniform;
|
||||
temperature 2600;
|
||||
}
|
||||
}
|
||||
|
||||
RW_right
|
||||
{
|
||||
type fixedTemperatureConstraint;
|
||||
active yes;
|
||||
|
||||
fixedTemperatureConstraintCoeffs
|
||||
{
|
||||
// selectionMode cellZone;
|
||||
// cellZone raceway;
|
||||
selectionMode cellSet;
|
||||
cellSet rw_right;
|
||||
mode uniform;
|
||||
temperature 2600;
|
||||
active yes;
|
||||
selectionMode all;
|
||||
Tmin 300;
|
||||
Tmax 2800;
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
// OF 6
|
||||
source1
|
||||
{
|
||||
type limitTemperature;
|
||||
active yes;
|
||||
limitTemperatureCoeffs
|
||||
{
|
||||
active yes;
|
||||
selectionMode all;
|
||||
min 300;
|
||||
max 2800;
|
||||
}
|
||||
}
|
||||
|
||||
@ -77,25 +77,6 @@ PIMPLE
|
||||
pMax pMax [ 1 -1 -2 0 0 ] 500000;
|
||||
|
||||
UMax UMax [ 0 1 -1 0 0 ] 250;
|
||||
|
||||
residualControl
|
||||
{
|
||||
U
|
||||
{
|
||||
tolerance 5e-3;
|
||||
relTol 0;
|
||||
}
|
||||
p
|
||||
{
|
||||
tolerance 5e-3;
|
||||
relTol 0;
|
||||
}
|
||||
e
|
||||
{
|
||||
tolerance 5e-3;
|
||||
relTol 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
PISO
|
||||
|
||||
Reference in New Issue
Block a user