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

Garbage value at zeroGradient bounday

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 8, 2020, 22:22
Default Garbage value at zeroGradient bounday
  #1
Member
 
Bidesh Sengupta
Join Date: Sep 2018
Location: Sngapore
Posts: 76
Rep Power: 8
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, 10 views)
BSengupta is offline   Reply With Quote

Old   June 16, 2020, 04:24
Default
  #2
Member
 
Bidesh Sengupta
Join Date: Sep 2018
Location: Sngapore
Posts: 76
Rep Power: 8
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


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 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


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