CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   fvOptions fixed Temp. problem (https://www.cfd-online.com/Forums/openfoam-solving/173310-fvoptions-fixed-temp-problem.html)

Wilson Lee June 16, 2016 23:00

fvOptions fixed Temp. problem
 
Hello, I am simulating a supersonic combustion case.

I couldn't figure out why the "fixedTemperatureConstraint" always exists in my field and never faded out, even if the duration time has been exceeded.

The following is the code part and the figure of the problem.
Please help me to figure out what's going on, thanks very much!!!

Code:

source1
{
    type            fixedTemperatureConstraint;
    active          true;
    timeStart      0.002;//0.001;//5e-8;
    duration        5e-6;//1e-5;

    fixedTemperatureConstraintCoeffs
    {
            selectionMode  cellSet;
            cellSet        ignitionCells;
        mode            uniform;
        temperature    3000;
    }
}

# The red spot is the ignitionCells for which I applied the constraint.
https://drive.google.com/file/d/0By0...ew?usp=sharing

RobinZ November 10, 2016 05:33

Are you sure, that the fixedTemperatureConstraint class has the member duration?
I looked in the doxygen and couldn't see an entry like this.

killer2234 November 13, 2016 09:59

Thank you very much for your kind reply,Robin~
I have re-checked the fixedTemperatureConstraint.H file and in doxygen, and I think you're right.
There is no member "duration" & "startTime" in fixedTemperatureConstraint class.
So, I know where's the problem now. Thanks!!

HPE January 23, 2020 10:49

The two entries should exist for that fvOptions: see the tutorial lagrangian/coalChemistryFoam/simplifiedSiwek/constant/fvOptions line:20.

And this fvOptions is derived from `#include "cellSetOption.H"`. It should definitely possess `timeStart` and `duration` entries.

dasith0001 March 29, 2021 18:43

the tread is probably dead by now but it works as follows;

tempSource1
{
type fixedTemperatureConstraint;
active on;
selectionMode cellZone;
cellZone bottomSolid;


fixedTemperatureConstraintCoeffs
{
timeStart 0.0;
duration 10.0;
selectionMode cellZone;
cellZone bottomSolid;
mode uniform;
temperature 400;
}
}

I am just wondering can we give the temperature input as a function of time?

Thank you.
Dasith


All times are GMT -4. The time now is 08:27.