CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   New ABL Boundary Condition for low z0 inlet (https://www.cfd-online.com/Forums/openfoam-programming-development/134403-new-abl-boundary-condition-low-z0-inlet.html)

jamesDurham April 29, 2014 07:32

New ABL Boundary Condition for low z0 inlet
 
1 Attachment(s)
Hi all,

Have recently completed a Research paper which included a CFD validation of the well-known Bolund Hill Experiment. I had to modify the inlet boundary conditions for velocity and epsilon profiles as they would not allow aerodynamic roughness (z0) values less than 0.001 m. The surrounding water at the Bolund site has roughness length 0.0003 m and so the profiles have been adapted to accommodate this lower value. The profiles are those of Richards and Hoxey (1993).

Just thought this may be helpful if you were performing a similar investigation and could not produce the required inlet profiles due to this limitation in the atmBoundaryLayerInlet type inlet functions. I have included all the relevant makefiles and scripts, which i compiled on my machine with 'wmake -libso' command. The library can then be referenced through the controlDict dictionary

Hope this is helpful :)

meng9019 May 20, 2014 05:56

Hi James and other Foamers,

I am trying to compile the new ABL BC.

I put the files you attached, say atmBoundaryLayerInletEpsilonBolund, atmBoundaryLayerInletVelocityBolund and Make folder in the following directory: $WM_PROJECT_USER_DIR/src/finiteVolume/fields/fvPatchFields/derived

In the above directory, I type "wmake libso" to compile the new ABL boundary.

Then I specify the atmBoundaryLayerInletEpsilonBolund type in 0/epsilon and
atmBoundaryLayerInletVelocityBolund in 0/U, and add libs ("libmyBCs.so"); in the system/controlDict file.

However we I run decomposePar, I get the following error massage
"FOAM Warning :
From function dlOpen(const fileName&, const bool)
in file POSIX.C at line 1179
dlopen error : libmyBCs.so: cannot open shared object file: No such file or directory"

Do you have any suggestions?

Thanks in advance.

meng9019 May 21, 2014 03:00

Dear all,

The problem has been fixed.
The new boundary lib is "libMyBCs.so", not "libmyBCs.so".


All times are GMT -4. The time now is 10:42.