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

custom BC with funkySetFields

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

Reply
 
LinkBack Thread Tools Display Modes
Old   February 28, 2014, 14:16
Default custom BC with funkySetFields
  #1
Senior Member
 
Chris Sideroff
Join Date: Mar 2009
Location: Ottawa, ON, CAN
Posts: 371
Rep Power: 12
cnsidero is on a distinguished road
Honorable Herr Gschaider,

How do I get funkySetFields to play nice with my custom boundary condition? I.e. when I run it I get the following:

Code:
--> FOAM FATAL IO ERROR: 
Unknown patchField type myCustomBoundaryCondition for patch type patch

Valid patchField types are :

52
(
...
)
Respectfully, Gospodin Sideroff

Ps. - I'm not Russian but unfortunately the "Canadian" language doesn't have it's own honorific ;-P
cnsidero is offline   Reply With Quote

Old   February 28, 2014, 16:00
Default
  #2
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,915
Rep Power: 40
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by cnsidero View Post
Honorable Herr Gschaider,

How do I get funkySetFields to play nice with my custom boundary condition? I.e. when I run it I get the following:

Code:
--> FOAM FATAL IO ERROR: 
Unknown patchField type myCustomBoundaryCondition for patch type patch

Valid patchField types are :

52
(
...
)
Respectfully, Gospodin Sideroff

Ps. - I'm not Russian but unfortunately the "Canadian" language doesn't have it's own honorific ;-P
Comrade Sideroff! When the revolution comes the party will forbid custom boundary conditions. I let you off with a warning but please try to get over these bourgeois habits!

Seriously: the boundary condition is "in" your solver, not in a separate library? If it is in a library just add that to libs in controlDict and you're fine. If it isn't then in theory there isn't much you can do. In practice there is a nice workaround: the generic boundary condition: In the controlDict add
Code:
libs (
    "libgenericPatchFields.so"
);
in the "global" controlDict (the one in $WM_PROJECT_DIR/etc) make sure that there is
Code:
    disallowGenericFvPatchField 0;
(usually I'd recommend 1). Then OF accepts boundary conditions that it doesn't understand
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
groovyBC and funkySetFields married and got a kid named swak4Foam gschaider OpenFOAM 164 January 13, 2015 03:52
Problem in sampling data of custom field function in ANSYS FLUENT v14 apek_great ANSYS 1 February 26, 2014 06:10
funkySetFields and funkySetBoundaryFields zxj160 OpenFOAM 14 October 3, 2013 12:52
how to use funkySetFields function in muliregion case bryant_k OpenFOAM 3 April 28, 2013 16:54
How to calculate pressure forces using custom field functions? tsagaro FLUENT 6 April 13, 2011 04:03


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