|
[Sponsors] |
February 9, 2015, 05:04 |
boundary condition for dynamic mesh
|
#1 |
New Member
Join Date: Jun 2012
Posts: 11
Rep Power: 13 |
Hi,
for a dynamic mesh I need a slip boundary condition in combination with a fixed value in the normal direction for the point motion. I want to modify the BC in src/OpenFOAM/fields/pointPatchFields/derived/fixedNormalSlip. So I copied it to my OpenFOAM user directory, renamed it to myFixedNormalSlip and did a word replacement in the files. I did not do any further changes so far. I can compile it with no errors, but for some reason I cannot use it in 0/pointMotionU ( unknown patchField type). I think there is something missing in make/options, but I have no idea what I have to add. |
|
February 11, 2015, 06:22 |
|
#2 |
New Member
Join Date: Jun 2012
Posts: 11
Rep Power: 13 |
I got my modified fixedNormalSlip working by applying the changes directly in the files stored in /opt/openfoam231/src/OpenFOAM/fields/pointPatchFields/derived/fixedNormalSlip/ .
But I am still wondering how to do it in my own lib. Any suggestions are welcome. |
|
February 11, 2015, 14:57 |
|
#3 |
Member
Niklas Wikstrom
Join Date: Mar 2009
Posts: 86
Rep Power: 17 |
Did you make the solver aware of the new library? Add the libs entry to controlDict in the case:
libs ("path/to/your/libBC.so"); /N |
|
February 12, 2015, 01:31 |
|
#4 |
New Member
Join Date: Jun 2012
Posts: 11
Rep Power: 13 |
Yes I did.
The funny thing is, if I set any boundary in pointMotionU to something like "type banana", in the error message where the possible boundary conditions are listed there is an entry "myFixedNormalSlip". But if I then set any boundary in pointMotionU to boundary { type myFixedNormalSlip; n (1 0 0); } I get an error message "Unknown patchField type myFixedNormalSlip" and in the following list (which is much longer then the list before) the entry "myFixedNormalSlip" is missing. The other thing is that it works just fine if I modify a very similar BC but for fvPatchFields "/opt/openfoam231/src/finiteVolume/fields/fvPatchFields/derived/fixedNormalSlip" and add it to my lib. Maybe libs located in /opt/src/OpenFOAM need some special treatment? I tried to use the Make/options from /opt/src/OpenFOAM, but that doesn't work either. |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Wind turbine simulation | Saturn | CFX | 58 | July 3, 2020 01:13 |
snappyhexmesh remove blockmesh geometry | philipp1 | OpenFOAM Running, Solving & CFD | 2 | December 12, 2014 10:58 |
inlet velocity boundary condition | murali | CFX | 5 | August 3, 2012 08:56 |
vorticity boundary condition | bearcharge | Main CFD Forum | 0 | May 14, 2010 11:32 |
How to control Minximum mesh space? | hung | FLUENT | 7 | April 18, 2005 09:38 |