CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM

Garbage value at zeroGradient bounday

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 8, 2020, 21:22
Default Garbage value at zeroGradient bounday
  #1
Member
 
Bidesh Sengupta
Join Date: Sep 2018
Posts: 71
Rep Power: 4
BSengupta is on a distinguished road
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.
Attached Images
File Type: jpg URel.jpg (26.4 KB, 9 views)
BSengupta is offline   Reply With Quote

Old   June 16, 2020, 03:24
Default
  #2
Member
 
Bidesh Sengupta
Join Date: Sep 2018
Posts: 71
Rep Power: 4
BSengupta is on a distinguished road
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.
BSengupta is offline   Reply With Quote

Reply

Tags
boundary, foam ext 4.0, values, zerogradient

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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 07:05
Floating point exception error lpz_michele OpenFOAM Running, Solving & CFD 53 October 19, 2015 02:50
Boundary Conditions MtnRunBeachBum OpenFOAM Pre-Processing 1 April 30, 2015 16:33
[swak4Foam] Air Conditioned room groovyBC Sebaj OpenFOAM Community Contributions 7 October 31, 2012 14:16
Pressure instability with rhoSimpleFoam daniel_mills OpenFOAM Running, Solving & CFD 44 February 17, 2011 17:08


All times are GMT -4. The time now is 15:29.