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

[swak4Foam] custom BC with funkySetFields

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread 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: 434
Rep Power: 22
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: 4,225
Rep Power: 51
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


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
[swak4Foam] groovyBC and funkySetFields married and got a kid named swak4Foam gschaider OpenFOAM Community Contributions 169 August 10, 2023 10:01
[swak4Foam] how to use funkySetFields function in muliregion case bryant_k OpenFOAM Community Contributions 15 October 15, 2021 03:50
How to calculate pressure forces using custom field functions? tsagaro FLUENT 7 June 23, 2017 16:45
Problem in sampling data of custom field function in ANSYS FLUENT v14 apek_great ANSYS 1 February 26, 2014 06:10
defining custom convetive terms CFD user CFX 1 February 22, 2009 23:40


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