CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (http://www.cfd-online.com/Forums/openfoam-solving/)
-   -   is internalField(U) equivalent to zeroGradient? (http://www.cfd-online.com/Forums/openfoam-solving/114195-internalfield-u-equivalent-zerogradient.html)

 immortality March 6, 2013 18:09

is internalField(U) equivalent to zeroGradient?

when I set BC for U to zeroGradient or:
Code:

```right     {     type groovyBC;     fractionExpression "0";     gradientExpression "vector(0,0,0)";     }```
it answers without any error
but when I set it to:
Code:

```right     {     type groovyBC;     fractionExpression "1";     valueExpression "internalField(U)";//vector(internalField(U).x,0,0)     }```
it falls to an error on T(energy equation probably) as so:
Code:

```From function janafThermo<EquationOfState>::limit(const scalar T) const in file /home/opencfd/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/janafThermoI.H at line 108 attempt to use janafThermo<EquationOfState> out of temperature range 200 -> 6000;  T = -3333091.721 --> FOAM Warning : From function janafThermo<EquationOfState>::limit(const scalar T) const in file /home/opencfd/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/janafThermoI.H at line 108 attempt to use janafThermo<EquationOfState> out of temperature range 200 -> 6000;  T = 4080511.561 --> FOAM Warning : From function janafThermo<EquationOfState>::limit(const scalar T) const in file /home/opencfd/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/janafThermoI.H at line 108 attempt to use janafThermo<EquationOfState> out of temperature range 200 -> 6000;  T = -7124696.499 --> FOAM Warning : From function janafThermo<EquationOfState>::limit(const scalar T) const in file /home/opencfd/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/janafThermoI.H at line 108 attempt to use janafThermo<EquationOfState> out of temperature range 200 -> 6000;  T = 5774453.414 --> FOAM Warning : From function janafThermo<EquationOfState>::limit(const scalar T) const in file /home/opencfd/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/janafThermoI.H at line 108 attempt to use janafThermo<EquationOfState> out of temperature range 200 -> 6000;  T = -6575768.989 --> FOAM Warning : From function janafThermo<EquationOfState>::limit(const scalar T) const in file /home/opencfd/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/janafThermoI.H at line 108 attempt to use janafThermo<EquationOfState> out of temperature range 200 -> 6000;  T = 5981361.409 --> FOAM Warning : From function janafThermo<EquationOfState>::limit(const scalar T) const in file /home/opencfd/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/janafThermoI.H at line 108 attempt to use janafThermo<EquationOfState> out of temperature range 200 -> 6000;  T = 1404258.482 --> FOAM Warning : From function janafThermo<EquationOfState>::limit(const scalar T) const in file /home/opencfd/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/janafThermoI.H at line 108 attempt to use janafThermo<EquationOfState> out of temperature range 200 -> 6000;  T = -17090209.16 --> FOAM Warning : From function janafThermo<EquationOfState>::limit(const scalar T) const in file /home/opencfd/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/janafThermoI.H at line 108 attempt to use janafThermo<EquationOfState> out of temperature range 200 -> 6000;  T = 36020792.5 --> FOAM Warning : From function janafThermo<EquationOfState>::limit(const scalar T) const in file /home/opencfd/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/janafThermoI.H at line 108 attempt to use janafThermo<EquationOfState> out of temperature range 200 -> 6000;  T = -94818398.64 --> FOAM Warning : From function janafThermo<EquationOfState>::limit(const scalar T) const in file /home/opencfd/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/janafThermoI.H at line 108 attempt to use janafThermo<EquationOfState> out of temperature range 200 -> 6000;  T = 40233402.34 --> FOAM Warning : From function janafThermo<EquationOfState>::limit(const scalar T) const in file /home/opencfd/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/janafThermoI.H at line 108 attempt to use janafThermo<EquationOfState> out of temperature range 200 -> 6000;  T = -106376680.8 --> FOAM Warning : From function janafThermo<EquationOfState>::limit(const scalar T) const in file /home/opencfd/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/janafThermoI.H at line 108 attempt to use janafThermo<EquationOfState> out of temperature range 200 -> 6000;  T = 37389446.51 --> FOAM Warning : From function janafThermo<EquationOfState>::limit(const scalar T) const in file /home/opencfd/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/janafThermoI.H at line 108 attempt to use janafThermo<EquationOfState> out of temperature range 200 -> 6000;  T = -76115211.3 --> FOAM Warning : From function janafThermo<EquationOfState>::limit(const scalar T) const in file /home/opencfd/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/janafThermoI.H at line 108 attempt to use janafThermo<EquationOfState> out of temperature range 200 -> 6000;  T = -24650104.63 --> FOAM Warning : From function janafThermo<EquationOfState>::limit(const scalar T) const in file /home/opencfd/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/janafThermoI.H at line 108 attempt to use janafThermo<EquationOfState> out of temperature range 200 -> 6000;  T = -26951665.22 --> FOAM Warning : From function janafThermo<EquationOfState>::limit(const scalar T) const in file /home/opencfd/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/janafThermoI.H at line 108 attempt to use janafThermo<EquationOfState> out of temperature range 200 -> 6000;  T = 471535.4463 --> FOAM Warning : From function janafThermo<EquationOfState>::limit(const scalar T) const in file /home/opencfd/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/janafThermoI.H at line 108 attempt to use janafThermo<EquationOfState> out of temperature range 200 -> 6000;  T = 465677.0027 --> FOAM Warning : From function janafThermo<EquationOfState>::limit(const scalar T) const in file /home/opencfd/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/janafThermoI.H at line 108 attempt to use janafThermo<EquationOfState> out of temperature range 200 -> 6000;  T = 277204.4414 --> FOAM Warning : From function janafThermo<EquationOfState>::limit(const scalar T) const in file /home/opencfd/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/janafThermoI.H at line 108 attempt to use janafThermo<EquationOfState> out of temperature range 200 -> 6000;  T = -145721.0621 --> FOAM Warning : From function janafThermo<EquationOfState>::limit(const scalar T) const in file /home/opencfd/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/janafThermoI.H at line 108 attempt to use janafThermo<EquationOfState> out of temperature range 200 -> 6000;  T = 15779.92442 --> FOAM Warning : From function janafThermo<EquationOfState>::limit(const scalar T) const in file /home/opencfd/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/janafThermoI.H at line 108 attempt to use janafThermo<EquationOfState> out of temperature range 200 -> 6000;  T = 112883.4828 --> FOAM Warning : From function janafThermo<EquationOfState>::limit(const scalar T) const in file /home/opencfd/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/janafThermoI.H at line 108 attempt to use janafThermo<EquationOfState> out of temperature range 200 -> 6000;  T = -3083.273126 --> FOAM Warning : From function janafThermo<EquationOfState>::limit(const scalar T) const in file /home/opencfd/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/janafThermoI.H at line 108 attempt to use janafThermo<EquationOfState> out of temperature range 200 -> 6000;  T = 43.52495911 --> FOAM Warning : From function janafThermo<EquationOfState>::limit(const scalar T) const in file /home/opencfd/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/janafThermoI.H at line 108 attempt to use janafThermo<EquationOfState> out of temperature range 200 -> 6000;  T = 4976486.257 --> FOAM Warning : From function janafThermo<EquationOfState>::limit(const scalar T) const in file /home/opencfd/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/janafThermoI.H at line 108 attempt to use janafThermo<EquationOfState> out of temperature range 200 -> 6000;  T = 3178348.937 --> FOAM Warning : From function janafThermo<EquationOfState>::limit(const scalar T) const in file /home/opencfd/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/janafThermoI.H at line 108 attempt to use janafThermo<EquationOfState> out of temperature range 200 -> 6000;  T = -32897237.32 --> FOAM Warning : From function janafThermo<EquationOfState>::limit(const scalar T) const in file /home/opencfd/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/janafThermoI.H at line 108 attempt to use janafThermo<EquationOfState> out of temperature range 200 -> 6000;  T = -44825686.95 --> FOAM Warning : From function janafThermo<EquationOfState>::limit(const scalar T) const in file /home/opencfd/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/janafThermoI.H at line 108 attempt to use janafThermo<EquationOfState> out of temperature range 200 -> 6000;  T = -22612.51171 --> FOAM Warning : From function janafThermo<EquationOfState>::limit(const scalar T) const in file /home/opencfd/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/janafThermoI.H at line 108 attempt to use janafThermo<EquationOfState> out of temperature range 200 -> 6000;  T = -1870.615087 --> FOAM Warning : From function janafThermo<EquationOfState>::limit(const scalar T) const in file /home/opencfd/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/janafThermoI.H at line 108 attempt to use janafThermo<EquationOfState> out of temperature range 200 -> 6000;  T = 9690.272357 --> FOAM Warning : From function janafThermo<EquationOfState>::limit(const scalar T) const in file /home/opencfd/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/janafThermoI.H at line 108 attempt to use janafThermo<EquationOfState> out of temperature range 200 -> 6000;  T = -39521.73991 --> FOAM Warning : From function janafThermo<EquationOfState>::limit(const scalar T) const in file /home/opencfd/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/janafThermoI.H at line 108 attempt to use janafThermo<EquationOfState> out of temperature range 200 -> 6000;  T = 93265.31041 --> FOAM Warning : From function janafThermo<EquationOfState>::limit(const scalar T) const in file /home/opencfd/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/janafThermoI.H at line 108 attempt to use janafThermo<EquationOfState> out of temperature range 200 -> 6000;  T = -340838.0148 --> FOAM Warning : From function janafThermo<EquationOfState>::limit(const scalar T) const in file /home/opencfd/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/janafThermoI.H at line 108 attempt to use janafThermo<EquationOfState> out of temperature range 200 -> 6000;  T = 610015.5259 --> FOAM Warning : From function janafThermo<EquationOfState>::limit(const scalar T) const in file /home/opencfd/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/janafThermoI.H at line 108 attempt to use janafThermo<EquationOfState> out of temperature range 200 -> 6000;  T = -1813983.217 --> FOAM Warning : From function janafThermo<EquationOfState>::limit(const scalar T) const in file /home/opencfd/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/janafThermoI.H at line 108 attempt to use janafThermo<EquationOfState> out of temperature range 200 -> 6000;  T = 2650248.864 --> FOAM Warning : From function janafThermo<EquationOfState>::limit(const scalar T) const in file /home/opencfd/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/janafThermoI.H at line 108 attempt to use janafThermo<EquationOfState> out of temperature range 200 -> 6000;  T = -6558287.943```
I thought that internalField(U) or vector(internalField(U).x,0,0) do the same way as zeroGradient(or in groovyBC gradientExpression"0" does).
why?

 immortality March 6, 2013 18:15

is it possible to have the help of Mr.Gschaider if he doesn't have sulked?:D

 immortality March 7, 2013 07:09

why they don't act the same way?

 immortality March 8, 2013 04:47

does anyone have any experience or knowledge about this issue?

 immortality March 8, 2013 10:30

Its important to know your opinion because of your expertise on groovyBC.
Thank you for your and others comments.

 immortality March 10, 2013 06:36

the question persists if anyone has an idea it will be thanked.

 immortality March 15, 2013 05:22

is the question so much hard?
I only want to know the cause.why internalField and zeroGradient act differently in test although they seem should be the same?

 immortality March 29, 2013 02:27