Yann
03/05/2025, 1:36 PMBoludo
03/05/2025, 1:38 PMBoludo
03/05/2025, 1:38 PMYann
03/05/2025, 1:39 PMYann
03/05/2025, 1:39 PMBoludo
03/05/2025, 1:40 PMBoludo
03/05/2025, 1:41 PMBoludo
03/05/2025, 1:41 PMYann
03/05/2025, 1:46 PMBoludo
03/05/2025, 2:17 PM/--------------------------------- 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 dictionary;
location "system";
object controlDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
libs ();
application multiphaseEulerFoam;
startFrom latestTime;
startTime 0;
stopAt endTime;
endTime 0.04; //~40000
deltaT 1e-6;
writeControl runTime;
writeInterval 4e-5;
purgeWrite 0;
writeFormat ascii;
writePrecision 6;
writeCompression off;
timeFormat general;
timePrecision 6;
runTimeModifiable yes;
adjustTimeStep no;
maxCo 0.5;
//maxAlphaCo 0.5;
maxDeltaT 0.01;
// ************************* //
cacheTemporaryObjects
();
functions
{
//$surfaceFieldValueFunctions;
//#includeFunc Q(U.water)
#includeFunc faceZoneAverage(name=monitorZone, phi.water)
#includeFunc faceZoneFlowRate(name=monitorZone)
massFlowRate
{
type surfaceFieldValue;
functionObjectLibs ("libfieldFunctionObjects.so");
writeControl outputTime;
enabled true;
log true;
writeFields false;
regionType sampledSurface;
name monitorZone;
operation sum;
fields (phi.water phi.air);
sampledSurfaceDict
{
type faceZoneSet;
setName monitorZone;
}
}
fieldAverage
{
type fieldAverage;
functionObjectLibs ( "libfieldFunctionObjects.so" );
writeControl outputTime;
enabled true;
timeStart 0.01; //10000
fields
(
U.air
{
mean on;
prime2Mean on;
base time;
}
U.water
{
mean on;
prime2Mean on;
base time;
}
alpha.air
{
mean on;
prime2Mean off;
base time;
}
alpha.water
{
mean on;
prime2Mean off;
base time;
}
nut.water
{
mean on;
prime2Mean on;
base time;
}
p
{
mean on;
prime2Mean off;
base time;
}
k.water
{
mean on;
prime2Mean on;
base time;
}
);
}
}
surfaceFieldValueFunctions
{}
// ************************* //
Boludo
03/05/2025, 2:21 PMwriteControl outputTime;
works...Yann
03/05/2025, 2:26 PM--> FOAM Warning :
From function bool Foam::functionObjectList::read()
in file db/functionObjects/functionObjectList/functionObjectList.C at line 853
Caught FatalError
--> FOAM FATAL ERROR:
Unknown sample type faceZoneSet
Valid sample types :
8
(
cuttingPlane
distanceSurface
isoSurface
patch
patchInternalField
plane
thresholdCellFaces
triSurfaceMesh
)
Yann
03/05/2025, 2:27 PMsurfaceFieldValue faceZoneAverage(name=monitorZone,phi.water):
total faces = 2841
total area = 0.0366263
surfaceFieldValue faceZoneFlowRate(name=monitorZone):
total faces = 2841
total area = 0.0366263
Boludo
03/05/2025, 2:27 PMBoludo
03/05/2025, 2:27 PMBoludo
03/05/2025, 2:28 PMYann
03/05/2025, 2:29 PMBoludo
03/05/2025, 2:29 PMYann
03/05/2025, 2:30 PMregionType faceZone;
name monitorZone;
Boludo
03/05/2025, 2:31 PMYann
03/05/2025, 2:32 PMBoludo
03/05/2025, 2:33 PMBoludo
03/05/2025, 2:34 PMBoludo
03/05/2025, 2:34 PMUnknown sample type faceZoneSet
Valid sample types :
8
(
cuttingPlane
distanceSurface
isoSurface
patch
patchInternalField
plane
thresholdCellFaces
triSurfaceMesh
)
Yann
03/05/2025, 2:34 PMYann
03/05/2025, 2:35 PMBoludo
03/05/2025, 2:36 PMYann
03/05/2025, 2:39 PMBoludo
03/05/2025, 2:40 PM