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

How to create a new cyclic BC

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 9, 2012, 08:01
Default How to create a new cyclic BC
  #1
New Member
 
Gregory N de Boer
Join Date: Dec 2011
Posts: 12
Rep Power: 14
gregdB is on a distinguished road
Hi all,

I have been attempting to replicate the fan BC so that I can create my own derived type of cyclic BC. All has been going OK by following:

http://openfoamwiki.net/index.php/Ho...dary_condition

But I have a problem. There is no entry for fixedJumpFvPatchField.C or equivalent in $FOAM_SRC/finiteVolume/Make/files ? How can this be copied and how can it be complied in the first place without an entry here?

Any help would be very much appreciated.

Cheers,
Greg
gregdB is offline   Reply With Quote

Old   February 9, 2012, 10:56
Default
  #2
Senior Member
 
Steven van Haren
Join Date: Aug 2010
Location: The Netherlands
Posts: 149
Rep Power: 15
stevenvanharen is on a distinguished road
I am confused, where did you find this C-file? Why do you expect an entry for this in the Make-file?
stevenvanharen is offline   Reply With Quote

Old   February 9, 2012, 12:00
Default
  #3
New Member
 
Gregory N de Boer
Join Date: Dec 2011
Posts: 12
Rep Power: 14
gregdB is on a distinguished road
The C and H files for fixedJump are found in $FOAM_SRC/finiteVolume/fields/fvPatchFields/derived/fixedJump

To create a BC I copy a similar one from $FOAM_SRC/finiteVolume/fields/fvPatchFields/... and after changing the names then look-up from $FOAM_SRC/finiteVolume/Make/files for the correct entries needed to compile it. All BC's eg fan, jumpCyclic etc have entries in here so that they can be copied yet fixedJump does not?
gregdB is offline   Reply With Quote

Old   February 10, 2012, 07:22
Default
  #4
Senior Member
 
Steven van Haren
Join Date: Aug 2010
Location: The Netherlands
Posts: 149
Rep Power: 15
stevenvanharen is on a distinguished road
Ah ok, sorry, was looking in the wrong OF version.

fixedJump does not have an entry since it is not a boundary condition. It is just a parent-class for the fan boundary condition. It will be compiled since it is included in the fan b.c. files.

Maybe try to base your new b.c. on the fan b.c.?
stevenvanharen is offline   Reply With Quote

Old   February 10, 2012, 07:56
Default
  #5
New Member
 
Gregory N de Boer
Join Date: Dec 2011
Posts: 12
Rep Power: 14
gregdB is on a distinguished road
I see, unfortunately I need to change jumpCyclic, fixedJump and fan bc so that I can get what I need. If I change fixedJump as well as fan and then include all the files when compiling fan hopefully that will work?
gregdB is offline   Reply With Quote

Old   February 10, 2012, 08:19
Default
  #6
Senior Member
 
Steven van Haren
Join Date: Aug 2010
Location: The Netherlands
Posts: 149
Rep Power: 15
stevenvanharen is on a distinguished road
Yes, that will work. But make sure you include the updated files and not the files from the lnInclude folder.
stevenvanharen is offline   Reply With Quote

Old   February 10, 2012, 09:40
Default
  #7
New Member
 
Gregory N de Boer
Join Date: Dec 2011
Posts: 12
Rep Power: 14
gregdB is on a distinguished road
Thanks, it complies and runs. All I now need to do now is change the code! Cheers, Greg
gregdB is offline   Reply With Quote

Reply

Tags
cyclic boundaries, openfoam 2.0.x

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
how to set periodic boundary conditions Ganesh FLUENT 15 November 18, 2020 06:09
[blockMesh] Include list of points Hikachu OpenFOAM Meshing & Mesh Conversion 0 June 20, 2011 09:03
Actuator disk model audrich FLUENT 0 September 21, 2009 07:06
Where's the singularity/mesh flaw? audrich FLUENT 3 August 4, 2009 01:07
fluent add additional zones for the mesh file SSL FLUENT 2 January 26, 2008 11:55


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