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

boundary condition for dynamic mesh

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 9, 2015, 05:04
Default boundary condition for dynamic mesh
  #1
ALU
New Member
 
Join Date: Jun 2012
Posts: 11
Rep Power: 13
ALU is on a distinguished road
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.
ALU is offline   Reply With Quote

Old   February 11, 2015, 06:22
Default
  #2
ALU
New Member
 
Join Date: Jun 2012
Posts: 11
Rep Power: 13
ALU is on a distinguished road
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.
ALU is offline   Reply With Quote

Old   February 11, 2015, 14:57
Default
  #3
Member
 
Niklas Wikstrom
Join Date: Mar 2009
Posts: 86
Rep Power: 17
wikstrom is on a distinguished road
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
wikstrom is offline   Reply With Quote

Old   February 12, 2015, 01:31
Default
  #4
ALU
New Member
 
Join Date: Jun 2012
Posts: 11
Rep Power: 13
ALU is on a distinguished road
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.
ALU 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
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


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