CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Pre-Processing (
-   -   The u file (

ivanyao June 30, 2008 22:30

hi, I am doing a simulation,i
I am doing a simulation,it is about the wind pressure on the building.there is a problem to set the velocity of the wind.It is ok to set the velocity by a exactly value,such as 5m/s,8m/s.but the fact is the velocity of wind is change by the height,such as 0.2Z(Z is the height of the building.)and I don't know how to fix it. I am very appreciate if someone can help me.thanks.

kaleekun June 30, 2008 23:28

I think , you can do that usin
I think , you can do that using funkySetFields executable...
If you are not successful with that, see sonicFoam's setShock utility. You will get some idea in doing it

ivanyao July 5, 2008 02:29


imano July 7, 2008 06:37

Hi! Our Laboratory-made-uti

Our Laboratory-made-utility setDiscreteFields would help you.

This utility can set profiles of any vector/scalar fields at specified boundary patches with using discrete profile data.

See setDiscreteFieldsDict in the attached archived file for details! setDiscreteFields-1.0.tar.gz

ivan_cozza July 7, 2008 08:36

I know, that's a stupid questi
I know, that's a stupid question, but,
where do I have to put the setDiscreteFields to compile it correctly?

imano July 7, 2008 11:14

Hi, Ivan! Any locations cou
Hi, Ivan!

Any locations could be used for the proper compilation!

But I usually put source of this kind of non-standard utility
at $WM_PROJECT_USER_DIR/applications/utilities.

In this case the compilation commands would be described like:

$ cd $WM_PROJECT_USER_DIR/applications/utilities
$ tar zxf setDiscreteFields-1.0.tar.gz
$ cd setDiscreteFields
$ wmake


All times are GMT -4. The time now is 17:38.