mirror of
https://github.com/ParticulateFlow/CFDEMcoupling-PFM.git
synced 2025-12-08 06:37:44 +00:00
Cleaning up test case.
This commit is contained in:
@ -38,7 +38,8 @@ boundaryField
|
|||||||
|
|
||||||
inlet
|
inlet
|
||||||
{
|
{
|
||||||
type zeroGradient;
|
type fixedValue;
|
||||||
|
value uniform 0.0;
|
||||||
}
|
}
|
||||||
|
|
||||||
outlet
|
outlet
|
||||||
|
|||||||
@ -38,7 +38,8 @@ boundaryField
|
|||||||
|
|
||||||
inlet
|
inlet
|
||||||
{
|
{
|
||||||
type zeroGradient;
|
type fixedValue;
|
||||||
|
value uniform 1.0;
|
||||||
}
|
}
|
||||||
|
|
||||||
outlet
|
outlet
|
||||||
|
|||||||
@ -17,32 +17,37 @@ FoamFile
|
|||||||
|
|
||||||
dimensions [0 1 -1 0 0 0 0];
|
dimensions [0 1 -1 0 0 0 0];
|
||||||
|
|
||||||
internalField uniform (0.0 0 0);
|
internalField uniform (1.0 0 0);
|
||||||
|
|
||||||
boundaryField
|
boundaryField
|
||||||
{
|
{
|
||||||
// Walls in no slip condition
|
// Walls in no slip condition
|
||||||
top
|
top
|
||||||
{
|
{
|
||||||
type zeroGradient;
|
type fixedValue;
|
||||||
|
value uniform (0.0 0 0);
|
||||||
}
|
}
|
||||||
bottom
|
bottom
|
||||||
{
|
{
|
||||||
type zeroGradient;
|
type fixedValue;
|
||||||
|
value uniform (0.0 0 0);
|
||||||
}
|
}
|
||||||
side-walls
|
side-walls
|
||||||
{
|
{
|
||||||
type zeroGradient;
|
type fixedValue;
|
||||||
|
value uniform (0.0 0 0);
|
||||||
}
|
}
|
||||||
inlet
|
inlet
|
||||||
{
|
{
|
||||||
type fixedValue;
|
type fixedValue;
|
||||||
value uniform (0.0 0 0);
|
value uniform (1.0 0 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
outlet
|
outlet
|
||||||
{
|
{
|
||||||
type zeroGradient;
|
type zeroGradient;
|
||||||
|
// type fixedValue;
|
||||||
|
// value uniform (0.0 0 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -111,6 +111,7 @@ speciesProps
|
|||||||
partMoleName "partN";
|
partMoleName "partN";
|
||||||
pressureFieldName "p";
|
pressureFieldName "p";
|
||||||
partPName "partP";
|
partPName "partP";
|
||||||
|
Nevery 10;
|
||||||
}
|
}
|
||||||
|
|
||||||
SyamlalThermCondProps
|
SyamlalThermCondProps
|
||||||
|
|||||||
@ -31,7 +31,7 @@ vertices
|
|||||||
|
|
||||||
blocks
|
blocks
|
||||||
(
|
(
|
||||||
hex (0 1 2 3 4 5 6 7)(13 4 4) simpleGrading (1 1 1)
|
hex (0 1 2 3 4 5 6 7)(29 9 9) simpleGrading (1 1 1)
|
||||||
|
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@ -17,19 +17,19 @@ FoamFile
|
|||||||
|
|
||||||
application cfdemSolverRhoPimpleChem;
|
application cfdemSolverRhoPimpleChem;
|
||||||
|
|
||||||
startFrom latestTime;
|
startFrom startTime;
|
||||||
|
|
||||||
startTime 0;
|
startTime 0;
|
||||||
|
|
||||||
stopAt endTime;
|
stopAt endTime;
|
||||||
|
|
||||||
endTime 0.5;
|
endTime 20.0;
|
||||||
|
|
||||||
deltaT 0.0001;
|
deltaT 0.0001;
|
||||||
|
|
||||||
writeControl adjustableRunTime;
|
writeControl timeStep;
|
||||||
|
|
||||||
writeInterval 0.005;
|
writeInterval 10000;
|
||||||
|
|
||||||
purgeWrite 0;
|
purgeWrite 0;
|
||||||
|
|
||||||
@ -53,14 +53,60 @@ maxDeltaT 0.1;
|
|||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
/* libs (
|
libs (
|
||||||
"libsimpleFunctionObjects.so"
|
// "libsimpleFunctionObjects.so"
|
||||||
"libfieldFunctionObjects.so"
|
"libfieldFunctionObjects.so"
|
||||||
);
|
);
|
||||||
|
|
||||||
functions
|
functions
|
||||||
{
|
{
|
||||||
Average-O2
|
probes1
|
||||||
|
{
|
||||||
|
type probes;
|
||||||
|
|
||||||
|
functionObjectLibs ("libsampling.so");
|
||||||
|
|
||||||
|
#include "probesDict";
|
||||||
|
}
|
||||||
|
|
||||||
|
globalMassFrac
|
||||||
|
{
|
||||||
|
type volRegion;
|
||||||
|
libs ("libfieldFunctionObjects.so");
|
||||||
|
writeControl timeStep;//outputTime;
|
||||||
|
writeInterval 1;
|
||||||
|
log true;
|
||||||
|
writeFields false;
|
||||||
|
regionType all;
|
||||||
|
name c0;
|
||||||
|
operation weightedVolAverage;
|
||||||
|
weightField rhoeps;
|
||||||
|
fields
|
||||||
|
(
|
||||||
|
O2
|
||||||
|
CO2
|
||||||
|
N2
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
globalMass
|
||||||
|
{
|
||||||
|
type volRegion;
|
||||||
|
libs ("libfieldFunctionObjects.so");
|
||||||
|
writeControl timeStep;//outputTime;
|
||||||
|
writeInterval 1;
|
||||||
|
log true;
|
||||||
|
writeFields false;
|
||||||
|
regionType all;
|
||||||
|
name c1;
|
||||||
|
operation volIntegrate;
|
||||||
|
fields
|
||||||
|
(
|
||||||
|
rhoeps
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Average-O2
|
||||||
{
|
{
|
||||||
type fieldAverage;
|
type fieldAverage;
|
||||||
functionObjectLibs ( "libfieldFunctionObjects.so" );
|
functionObjectLibs ( "libfieldFunctionObjects.so" );
|
||||||
@ -139,10 +185,9 @@ functions
|
|||||||
(
|
(
|
||||||
CO2
|
CO2
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
}
|
||||||
} */
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|
||||||
|
|||||||
@ -15,14 +15,14 @@ FoamFile
|
|||||||
}
|
}
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
numberOfSubdomains 4;
|
numberOfSubdomains 2;
|
||||||
|
|
||||||
//method scotch;
|
//method scotch;
|
||||||
method simple;
|
method simple;
|
||||||
|
|
||||||
simpleCoeffs
|
simpleCoeffs
|
||||||
{
|
{
|
||||||
n (2 2 1);
|
n (2 1 1);
|
||||||
delta 0.001;
|
delta 0.001;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -9,7 +9,7 @@ boundary f f f
|
|||||||
newton off
|
newton off
|
||||||
|
|
||||||
units si
|
units si
|
||||||
processors 2 2 1
|
processors 2 1 1
|
||||||
|
|
||||||
region reg block 0. 15. 0. 5. 0. 5. units box
|
region reg block 0. 15. 0. 5. 0. 5. units box
|
||||||
create_box 1 reg
|
create_box 1 reg
|
||||||
@ -40,7 +40,7 @@ fix zwalls1 all wall/gran model hertz tangential history primitive type 1 zp
|
|||||||
fix zwalls2 all wall/gran model hertz tangential history primitive type 1 zplane 5.0
|
fix zwalls2 all wall/gran model hertz tangential history primitive type 1 zplane 5.0
|
||||||
|
|
||||||
# create single particle in a specific spot
|
# create single particle in a specific spot
|
||||||
create_atoms 1 single 7.5 2 2 units box
|
create_atoms 1 single 7.5 2.5 2.5 units box
|
||||||
set atom 1 diameter 0.2 density 2267 vx 0 vy 0 vz 0
|
set atom 1 diameter 0.2 density 2267 vx 0 vy 0 vz 0
|
||||||
|
|
||||||
# particle distributions and insertion
|
# particle distributions and insertion
|
||||||
|
|||||||
@ -10,10 +10,11 @@ boundary f f f
|
|||||||
newton off
|
newton off
|
||||||
|
|
||||||
units si
|
units si
|
||||||
processors 2 2 1
|
processors 2 1 1
|
||||||
|
|
||||||
# read the restart file
|
# read the restart file
|
||||||
read_restart ../DEM/post/restart/liggghts.restart
|
read_restart ../DEM/post/restart/liggghts.restart
|
||||||
|
reset_timestep 0
|
||||||
|
|
||||||
neighbor 0.0005 bin
|
neighbor 0.0005 bin
|
||||||
neigh_modify delay 0 binsize 0.01
|
neigh_modify delay 0 binsize 0.01
|
||||||
@ -52,7 +53,7 @@ fix cfd3 all couple/cfd/chemistry n_species 3 species_names O2 CO2 N2
|
|||||||
|
|
||||||
# this should shrink the particle
|
# this should shrink the particle
|
||||||
#fix cfd4 all chem/shrink speciesA O2 molMassA 31.99 speciesC CO2 molMassC 44.01 molMassB 12.01 k 2.5e3 rdef 0.2
|
#fix cfd4 all chem/shrink speciesA O2 molMassA 31.99 speciesC CO2 molMassC 44.01 molMassB 12.01 k 2.5e3 rdef 0.2
|
||||||
fix cfd4 all chem/shrink speciesA O2 molMassA 31.99 speciesC CO2 molMassC 44.01 molMassB 12.01 k 2.5e3 rmin 0.005
|
fix cfd4 all chem/shrink speciesA O2 molMassA 31.99 speciesC CO2 molMassC 44.01 molMassB 12.01 k 2.5e1 rmin 0.005 nevery 1000
|
||||||
|
|
||||||
# apply nve integration to all particles that are inserted as single particles
|
# apply nve integration to all particles that are inserted as single particles
|
||||||
fix integr all nve/sphere
|
fix integr all nve/sphere
|
||||||
|
|||||||
@ -19,7 +19,7 @@ logpath=$casePath
|
|||||||
headerText="Particle_in_Duct"
|
headerText="Particle_in_Duct"
|
||||||
logfileName="log_$headerText"
|
logfileName="log_$headerText"
|
||||||
solverName="cfdemSolverRhoPimpleChem"
|
solverName="cfdemSolverRhoPimpleChem"
|
||||||
nrProcs="4"
|
nrProcs="2"
|
||||||
machineFileName="none" # yourMachinefileName | none
|
machineFileName="none" # yourMachinefileName | none
|
||||||
debugMode="off" # on | off| strict
|
debugMode="off" # on | off| strict
|
||||||
testHarnessPath="$CFDEM_TEST_HARNESS_PATH"
|
testHarnessPath="$CFDEM_TEST_HARNESS_PATH"
|
||||||
|
|||||||
@ -20,7 +20,7 @@ logpath="$casePath"
|
|||||||
headerText="run_liggghts_init_DEM"
|
headerText="run_liggghts_init_DEM"
|
||||||
logfileName="log_$headerText"
|
logfileName="log_$headerText"
|
||||||
solverName="in.liggghts_init"
|
solverName="in.liggghts_init"
|
||||||
nrProcs=4
|
nrProcs=2
|
||||||
machineFileName="none"
|
machineFileName="none"
|
||||||
debugMode="off"
|
debugMode="off"
|
||||||
#--------------------------------------------------------------------------------#
|
#--------------------------------------------------------------------------------#
|
||||||
|
|||||||
Reference in New Issue
Block a user