|
[Sponsors] |
[swak4Foam] ARE zeroGradient in groovyBC and internalFiald different in result? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 30, 2013, 09:24 |
ARE zeroGradient in groovyBC and internalFiald different in result?
|
#1 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
when I set BC for U to zeroGradient or:
Code:
right { type groovyBC; fractionExpression "0"; gradientExpression "vector(0,0,0)"; } but when I set it to: Code:
right { type groovyBC; fractionExpression "1"; valueExpression "internalField(U)";//vector(internalField(U).x,0,0) } 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 |
|
March 30, 2013, 11:49 |
|
#2 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
||
March 31, 2013, 06:08 |
|
#3 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
thank you dear Bernard.
I grasped the total idea.but implicit and explicit you mentioned you mean same as those are used in equations?could you explain a little more about the difference? does in the second case the solver takes the internalField(U) and put it exactly on the boundary but in the first(zeroGradient) it uses next time step value of internalField(U) and put it to the boundary? |
|
March 31, 2013, 20:20 |
|
#4 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
- leave your fingers of it (99.5% of all users don't need internalField) - read a textbook (like Versteeg "An introduction to compuational fluid dynamics") where the discretization of equations (and boundary conditions!) is explained. The nomenclature may be different but it will be clear to you what implicit/"in the matrix" means
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
||
April 11, 2013, 18:22 |
|
#5 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
no I'm among thos .5% ! need to use internalField.
is there a way to use gradientExpression so that a minus to be multiply to internal value? ( i need it for velocity) how can use gradientExpression except of velocity(0,0,0)?! |
|
April 11, 2013, 19:06 |
|
#6 |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
If the difference between a zeroGradient (Neuman) boundary condition and a Dirichlet-condition (fixedValue) that takes the value of the next cell is unclear to you: I doubt it.
I don't understand what you want to say here. Of course you can use gradientExpressions diffeent from (0,0,0). You've got to understand that this is the gradient perpendicular to the patch-face (if that is your problem)
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
|
April 12, 2013, 04:28 |
|
#7 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
yes i knew that but didn't expect that much difference in stability.that problem is resolved now.
I mean how can implement an statement like vector(-internalField(U),0,0) (in the condition that flow is outward in a inlet patch by gradientExpression because most usage of it is with zero |
|
|
|