|
[Sponsors] |
June 8, 2020, 22:22 |
Garbage value at zeroGradient bounday
|
#1 |
Member
Bidesh Sengupta
Join Date: Sep 2018
Location: Sngapore
Posts: 76
Rep Power: 8 |
Hi,
I am facing a strange problem. I have zeroGradient bc at wall for URel. The paraview (attached) shows non zero values of URel on wall. However, when I printed the values of URel on wall by the code it always appeared zero as: ........ URel : (0 0 0) U : (-8.00926 -3.86122 -0.00472897) URel : (0 0 0) U : (-7.54277 -3.22607 -0.00493376) URel : (0 0 0) U : (-7.03122 -1.90373 -0.0055965) URel : (0 0 0) ......... I need the values of URel on wall for further calculation inside the code. I shall be grateful if anyone kindly help me to solve it. URel is obtained from MRF. Thanks a lot. |
|
June 16, 2020, 04:24 |
|
#2 |
Member
Bidesh Sengupta
Join Date: Sep 2018
Location: Sngapore
Posts: 76
Rep Power: 8 |
If any more information is required I will be happy to share.
To tackle this problem I defined URef as: volVectorField URef ( IOobject ( "URef", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::NO_WRITE ), URel ); and then I did: URef.correctBoundaryConditions(); But strangely value of Uref that I got printing out from code and URel from paraview are different. Actually paraview results looks more physical. Can anyone please give some solution to it. Thanks a lot for your time. |
|
Tags |
boundary, foam ext 4.0, values, zerogradient |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Wrong Boundary Conditions (maximum number of iterations) in compressibleInterDyMFoam | silencebreak | OpenFOAM Running, Solving & CFD | 0 | September 11, 2017 08:05 |
Floating point exception error | lpz_michele | OpenFOAM Running, Solving & CFD | 53 | October 19, 2015 03:50 |
Boundary Conditions | MtnRunBeachBum | OpenFOAM Pre-Processing | 1 | April 30, 2015 17:33 |
[swak4Foam] Air Conditioned room groovyBC | Sebaj | OpenFOAM Community Contributions | 7 | October 31, 2012 15:16 |
Pressure instability with rhoSimpleFoam | daniel_mills | OpenFOAM Running, Solving & CFD | 44 | February 17, 2011 18:08 |