测试通过periodicChannel,主要修改:

- 适配fvOptionsCFDEM库(被peroidicChannel调用)
- periodicChannel中functionObject配置更新
This commit is contained in:
2025-02-13 13:50:56 +00:00
parent 337a7ffb17
commit 444bcec790
7 changed files with 25 additions and 25 deletions

2
.gitignore vendored
View File

@ -4,5 +4,5 @@ log*
.vscode
platforms
*~
testCase
testCase*

View File

@ -103,13 +103,13 @@ void Foam::fv::meanSupVelocityForce::correct(volVectorField& U)
{
if (twoPhase_)
{
word alphaName = coeffs_.lookup("alphaField");
word alphaName = coeffs_.get<word>("alphaField");
alpha_ = mesh_.lookupObject<volScalarField>(alphaName);
}
if (coupled_)
{
word voidfractionName = coeffs_.lookup("voidfractionField");
word voidfractionName = coeffs_.get<word>("voidfractionField");
voidfraction_ = mesh_.lookupObject<volScalarField>(voidfractionName);
}

View File

@ -48,6 +48,8 @@ clockModel off;//standardClock;//
smoothingModel off;// localPSizeDiffSmoothing;// constDiffSmoothing; //
verbose on;
forceModels
(
KochHillDrag

View File

@ -57,30 +57,27 @@ functions
probes
{
type probes;
// Where to load it from
functionObjectLibs ( "libsampling.so" );
// Name of the directory for probe data
name probes;
libs ( "libsampling.so" ); // Where to load it from
name probes; // Name of the directory for probe data
probeLocations
(
(0.00003 0.050001 0.050001)
(0.39999 0.050001 0.050001)
);
// Fields to be probed
fields ( p U voidfraction );
fields ( p U voidfraction ); // Fields to be probed
// Write at same frequency as fields
outputControl timeStep;//outputTime;
outputInterval 1;
writeControl timeStep;
writeInterval 1;
}
volFlow_inlet
{
type surfaceFieldValue;
functionObjectLibs ("libfieldFunctionObjects.so");
outputControl timeStep;
outputInterval 1;
libs ("libfieldFunctionObjects.so");
writeControl timeStep;
writeInterval 1;
log false;
writeFields false;
valueOutput false;
@ -96,9 +93,9 @@ functions
volFlow_outlet
{
type surfaceFieldValue;
functionObjectLibs ("libfieldFunctionObjects.so");
outputControl timeStep;
outputInterval 1;
libs ("libfieldFunctionObjects.so");
writeControl timeStep;
writeInterval 1;
log false;
writeFields false;
valueOutput false;
@ -114,9 +111,9 @@ functions
volFlow_wall
{
type surfaceFieldValue;
functionObjectLibs ("libfieldFunctionObjects.so");
outputControl timeStep;
outputInterval 1;
libs ("libfieldFunctionObjects.so");
writeControl timeStep;
writeInterval 1;
log false;
writeFields false;
valueOutput false;
@ -129,4 +126,3 @@ functions
);
}
}
// ************************************************************************* //

View File

@ -23,9 +23,9 @@ nrProcs="4"
machineFileName="none" # yourMachinefileName | none
debugMode="off" # on | off| strict
testHarnessPath="$CFDEM_TEST_HARNESS_PATH"
runOctave="true"
runOctave="false"
postproc="false"
cleanCase="true"
cleanCase="false"
#--------------------------------------------------------------------------------#
#- call function to run a parallel CFD-DEM case

View File

@ -49,6 +49,8 @@ smoothingModel constDiffSmoothing; //off;//
//useDDTvoidfraction;
verbose on;
forceModels
(
DiFeliceDrag

View File

@ -23,8 +23,8 @@ nrProcs="2"
machineFileName="none" # yourMachinefileName | none
debugMode="off" # on | off| strict
testHarnessPath="$CFDEM_TEST_HARNESS_PATH"
runOctave="true"
cleanUp="true"
runOctave="false"
cleanUp="false"
postproc="false"
#--------------------------------------------------------------------------------#