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

Wall distance in BC

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 14, 2011, 04:19
Default Wall distance in BC
  #1
Member
 
Sylvain Aguinaga
Join Date: Feb 2010
Posts: 41
Rep Power: 16
Sylvain is on a distinguished road
Hi everybody,

I'm trying to design a boundary condition which prescribes the velocity and other scalars in function of the distance from the ground instead of the z coordinate.
To do so, I planned to use the wallDist function included inside wallDist.H

But if you use this function you need to define the mesh variable, included inside createMesh.H, which requires the runtime variable include in createtime.H, which requires itself variables included in setRootCase.H, which requires the argc and argv variables that I can hardly find.

I didn't found any example of BC which uses the wallDist function, and then I wonder if this function defined in the fvmesh class can be used for the fvPatchfield class. More, I'm surprised that there is no BC which is based on the distance to the wall, so I guess that it is maybe more tricky than it appears…

Thus I have two questions: first, is it possible to use walldist.H for a boundary condition, and if yes how? Second, is there any other way to calculate the wall distance to prescribe a BC?

Thanks ahead for any comments

Sylvain
Sylvain is offline   Reply With Quote

Old   June 14, 2011, 19:54
Default
  #2
Senior Member
 
Julien de Charentenay
Join Date: Jun 2009
Location: Australia
Posts: 231
Rep Power: 17
julien.decharentenay is on a distinguished road
Send a message via Skype™ to julien.decharentenay
Sylvain,

I was thinking of doing something similar, but has not found the time to even start to investigate (and my knowledge of OpenFOAM is still limited).

My avenue of exploration were:
1) Look at the wall distance calculation in the domain and recover it on the boundary face (using a zero gradient approximation);
2) Alternatively, try to calculate the wall distance on the face itself (on the 2d approximation).

I would really appreciate if you can keep me updated on your progress (and I will do so if I get to it).

Regards,
Julien
__________________
---
Julien de Charentenay
julien.decharentenay is offline   Reply With Quote

Reply

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
calculating wall distance wallDist volker OpenFOAM Programming & Development 12 December 28, 2017 11:29
udf wall distance segmentation violation gento FLUENT 1 April 15, 2016 15:59
distance to wall in given direction nikwin OpenFOAM 3 February 16, 2012 09:27
cell to wall distance azmir Siemens 0 March 27, 2007 01:03
Distance to the nearest wall... Michal FLUENT 6 February 13, 2001 14:49


All times are GMT -4. The time now is 20:47.