|
[Sponsors] |
February 9, 2012, 09:01 |
How to create a new cyclic BC
|
#1 |
New Member
Gregory N de Boer
Join Date: Dec 2011
Posts: 12
Rep Power: 14 |
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 |
|
February 9, 2012, 11:56 |
|
#2 |
Senior Member
Steven van Haren
Join Date: Aug 2010
Location: The Netherlands
Posts: 149
Rep Power: 16 |
I am confused, where did you find this C-file? Why do you expect an entry for this in the Make-file?
|
|
February 9, 2012, 13:00 |
|
#3 |
New Member
Gregory N de Boer
Join Date: Dec 2011
Posts: 12
Rep Power: 14 |
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? |
|
February 10, 2012, 08:22 |
|
#4 |
Senior Member
Steven van Haren
Join Date: Aug 2010
Location: The Netherlands
Posts: 149
Rep Power: 16 |
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.? |
|
February 10, 2012, 08:56 |
|
#5 |
New Member
Gregory N de Boer
Join Date: Dec 2011
Posts: 12
Rep Power: 14 |
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?
|
|
February 10, 2012, 09:19 |
|
#6 |
Senior Member
Steven van Haren
Join Date: Aug 2010
Location: The Netherlands
Posts: 149
Rep Power: 16 |
Yes, that will work. But make sure you include the updated files and not the files from the lnInclude folder.
|
|
February 10, 2012, 10:40 |
|
#7 |
New Member
Gregory N de Boer
Join Date: Dec 2011
Posts: 12
Rep Power: 14 |
Thanks, it complies and runs. All I now need to do now is change the code! Cheers, Greg
|
|
Tags |
cyclic boundaries, openfoam 2.0.x |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
how to set periodic boundary conditions | Ganesh | FLUENT | 15 | November 18, 2020 07:09 |
[blockMesh] Include list of points | Hikachu | OpenFOAM Meshing & Mesh Conversion | 0 | June 20, 2011 10:03 |
Actuator disk model | audrich | FLUENT | 0 | September 21, 2009 08:06 |
Where's the singularity/mesh flaw? | audrich | FLUENT | 3 | August 4, 2009 02:07 |
fluent add additional zones for the mesh file | SSL | FLUENT | 2 | January 26, 2008 12:55 |