heatFlux item in controdict of packedBed case

skyopener's picture
Submitted by skyopener on Mon, 03/26/2012 - 14:21

hello developer,
I am interested in the function item heatFlux in the controdict file in the folder - cfdemSolverPisoScalarCase_shared/packedBedTemp/CFD/system.
======================================================
libs ("libOpenFOAM.so""libgroovyBC.so""libsimpleFunctionObjects.so""libsimpleSwakFunctionObjects.so""libswakFunctionObjects.so");
functions
(

// simpleFunctionObjects
heatFlux
{
type patchHeatFlux;
functionObjectLibs
(
"libsimpleFunctionObjects.so"
);
verbose true;
patches
(
inlet
outlet
);
fields // name of temp field
(
T
);
cp 1007; // cp in [J/(kg*K)]
factor 1.188; // density for incomp solvers!
}

an error occurred when running the solver even through swak4Foam is installed in the system, it tells me that the "type patchHeatFlux" is not available in simpleFunctionObjects library.
I can't find any description related to this function in the topic of simpleFunctionObject on openfoamwiki forum.
perhaps it has the same function as the utility "wallHeatFlux" in OF?
could you give me some hints about this?
BTW: if I want to calculate the heat flux through the wall in the fluidized bed, the only modification is to add the patch name into "parthes" item?
Best Regards
S.L

cgoniva's picture

cgoniva | Tue, 03/27/2012 - 08:53

Hi,

most probaly the compilation of simpleFunctionObjects library was not successful (although swak4Foam works).

Cheers,
Chris

skyopener's picture

skyopener | Tue, 03/27/2012 - 14:10

Hi Chris,
thanks for your reply.
After recompile the the library, the same error occured when running the solver.
The version of OF is 2.0.1 and both simpleFunctionobject and swak4 were installed.
It seems that the simpleFunctionObjects has been installed correctly in the system.(after the command "wmake libso" in the folder of simpleFunctionObject, it tells the library is updated....)
is it need to code for this function in the library?
I will dig into the code, hope it will be fine...
thx.
s.l

Simone | Wed, 11/15/2017 - 14:58

Hi,
Did you find a solution to this problem?

Simone

alice's picture

alice | Tue, 11/21/2017 - 10:26

Hello,
just as a remark: for the the current version of CFDEMcoupling (3.7.0) we recommend the usage of OpenFOAM 3.0.x. Other versions might work, but are not tested, this also holds for the swak objects. Older versions of swak of OpenFOAM might not contain all used functions.
Cheers,
Alice