CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Post-Processing (https://www.cfd-online.com/Forums/openfoam-post-processing/)
-   -   problem with comfort function (PPD PMV) in post-processing (https://www.cfd-online.com/Forums/openfoam-post-processing/235655-problem-comfort-function-ppd-pmv-post-processing.html)

Andrea23 April 23, 2021 06:30

problem with comfort function (PPD PMV) in post-processing
 
Hi,

I want to use the function "comfort "(https://cpp.openfoam.org/dev/comfort_8C.html) in post process to calculate the PPD and PMV field, I have calculated the T and U fields (with buoyantSimpleFoam).

the "comfort" file I put in system is:

Code:

    comfort
    {
        libs            ("libfieldFunctionObjects.so");
        type            comfort;

        clothing        1.0;
        metabolicRate  1.2;
        extWork        0;
        relHumidity    50;
        Trad  292; //I have tried with 292, 19 (if they are C) and without this line
    }

after using the comand line: postProcess -func comfort -time 1000
but I received this error

Quote:

Executing functionObjects
--> FOAM Warning :
From function Foam::dimensionedScalar Foam::functionObjects::comfort::Trad() const
in file comfort/comfort.C at line 95
The calculated mean wall radiation temperature is out of the
bounds specified in EN ISO 7730:2006
Valid range is 10 degC < T < 40 degC
The actual value is:

--> FOAM FATAL ERROR:
LHS and RHS of - have different dimensions
dimensions : [0 0 0 1 0 0 0] - [0 0 0 0 0 0 0]


From function Foam::dimensionSet Foam::operator-(const Foam::dimensionSet&, const Foam::dimensionSet&)
in file dimensionSet/dimensionSet.C at line 521.

FOAM aborting

#0 Foam::error::printStack(Foam::Ostream&) at ??:?
#1 Foam::error::abort() at ??:?
#2 Foam::operator-(Foam::dimensionSet const&, Foam::dimensionSet const&) at ??:?
#3 Foam::dimensioned<double> Foam::operator-<double>(Foam::dimensioned<double> const&, Foam::dimensioned<double> const&) at ??:?
#4 Foam::operator-(Foam::dimensioned<double> const&, double) at ??:?
#5 Foam::functionObjects::comfort::Trad() const at ??:?
#6 Foam::functionObjects::comfort::execute() at ??:?
#7 Foam::functionObjectList::execute() at ??:?
#8 ? in "/opt/openfoam8/platforms/linux64GccDPInt32Opt/bin/postProcess"
#9 ? in "/opt/openfoam8/platforms/linux64GccDPInt32Opt/bin/postProcess"
#10 __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
#11 ? in "/opt/openfoam8/platforms/linux64GccDPInt32Opt/bin/postProcess"
Do you know what is the problem?
What LHS and RHS are?

HPE April 23, 2021 13:55

Hi, LHS/RHS: left-hand side and right-hand side, respectively. Not familiar with this FO, however, the error suggests that units of two variables do not match. LHS has the units of Kelvin, and RHS is unitless.

Maybe you need to execute the postProcess utility with the solver? e.g.

buoyantFoam -postProcess -func bla bla (there should be some examples in the web. please look for them).

Hope these can give some hint.


All times are GMT -4. The time now is 17:43.