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

wallGradU does not work in OF 2.2.2

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

Reply
 
LinkBack Thread Tools Display Modes
Old   January 13, 2014, 13:28
Default wallGradU does not work in OF 2.2.2
  #1
New Member
 
Lee
Join Date: Oct 2011
Posts: 12
Rep Power: 5
SKLee is on a distinguished road
Hi All,

I run utility wallGradU for cases solving by rhoCentralFoam but it generates the gradient of velocity at the wall of zero. This is wrong answer.

Can someone check this ?

Sung-Ki
SKLee is offline   Reply With Quote

Old   February 10, 2014, 17:05
Default
  #2
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,258
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Greetings Sung-Ki,

I've taken a look into this and wallGradU works perfectly fine. The detail is that it's configured to only work on walls.

For example, if after the mesh is generated, you run this command:
Code:
patchSummary  -constant
You'll get a summary about the patches, e.g.:
Code:
wall    : top
    scalar        p        zeroGradient
    scalar        T        fixedValue
    vector        U        fixedValue

patch    : inlet
    scalar        p        fixedValue
    scalar        T        fixedValue
    vector        U        fixedValue

patch    : outlet
    scalar        p        zeroGradient
    scalar        T        zeroGradient
    vector        U        zeroGradient

symmetryPlane    : bottom
    scalar        p        symmetryPlane
    scalar        T        symmetryPlane
    vector        U        symmetryPlane

empty    : frontAndBack
    scalar        p        empty
    scalar        T        empty
    vector        U        empty
In this example, only the patch named "top" is of type wall, which means that wallGradU will only work for this patch.


In addition, when post-processing the case in ParaView, to visualize the "wallGradU" field, make sure you have loaded the patches of type "wall" in the "Mesh parts" section, as shown in the attached image.

Best regards,
Bruno
Attached Images
File Type: png Mesh parts.png (48.9 KB, 14 views)
wyldckat is offline   Reply With Quote

Old   February 12, 2014, 03:30
Default
  #3
New Member
 
Lee
Join Date: Oct 2011
Posts: 12
Rep Power: 5
SKLee is on a distinguished road
Thanks Bruno for your response. That's great.

I also have a problem with snGrad() function that I posted at

Problem with snGrad() for heat flux.

I will be appreciated if you can help me to figure out it.

Sung-Ki
SKLee is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
getting (0 0 0) wallGradU value when i m probing wallGradU at some points suryawanshi_nitin OpenFOAM 1 December 9, 2013 12:36
OpenFOAM 2.2.2 source pack installation on Xubuntu 13.10 zordiack OpenFOAM Installation 1 October 26, 2013 13:08
OpenFOAM Foundation releases OpenFOAM 2.2.2 opencfd OpenFOAM Announcements from ESI-OpenCFD 0 October 14, 2013 07:18
Why do the Plant library cases don't work? Alumna Phoenics 6 June 22, 2004 12:08
why my In-Form doesn't work? green Phoenics 2 May 27, 2004 21:03


All times are GMT -4. The time now is 05:04.