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

custom cyclic fvPatchField

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 14, 2020, 09:12
Default custom cyclic fvPatchField
  #1
Senior Member
 
Gerry Kan's Avatar
 
Gerry Kan
Join Date: May 2016
Posts: 348
Rep Power: 10
Gerry Kan is on a distinguished road
Howdy Foamers:

Following this thread, I have decided to investigate the possibly of writing my own fvPatchField based on cyclicFvPatchField.

As first step I took cyclicFvPatchField verbatim and renamed it to, say, "myCyclicFvPatchField". Note that I also had to change the TypeName to "myCyclicFvPatchField". The new fvPatchField compiled successfully and was picked up by my solver and, since I did not change its functionality, it should behave exactly like a cyclic boundary condition.

Using a test case, I changed the necessary "cyclic" boundaries to "myCyclic". I received the following runtime error:

Code:
--> FOAM FATAL IO ERROR:
inconsistent patch and patchField types for
    patch type cyclic and patchField type myCyclic
My hunch is that OF expecting matching name between the mesh patch type and the corresponding patch field type. As a logical conclusion, I also need to define a "myCyclic" patch type and use it in the corresponding patches in blockMeshDict.

My question is, do I have to develop a "myCyclic" patch type for use with blockMesh and, if this is the case, also develop a modified version of blockMesh which also include the new "myCyclic" patch type?

Thank you very much in advance, Gerry.
Gerry Kan is offline   Reply With Quote

Reply


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
Cyclic boundary condition in foam-extend 4.0 rellumeister OpenFOAM Pre-Processing 2 March 3, 2020 08:03
time step continuity error increases with time_SRFSimplefoam mostafa kamal OpenFOAM Running, Solving & CFD 7 October 2, 2019 02:00
LES in OF 3.0.1, no Output for nuSgs Mirage OpenFOAM Programming & Development 1 October 4, 2016 18:00
Cyclic Boundary Condition Errors? nyflyer OpenFOAM Running, Solving & CFD 2 April 26, 2016 14:14
Possible createPatch/createBaffles bug? simpomann OpenFOAM Bugs 2 July 15, 2014 07:07


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