CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Community Contributions (https://www.cfd-online.com/Forums/openfoam-community-contributions/)
-   -   [swak4Foam] custom BC with funkySetFields (https://www.cfd-online.com/Forums/openfoam-community-contributions/130573-custom-bc-funkysetfields.html)

cnsidero February 28, 2014 13:16

custom BC with funkySetFields
 
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

gschaider February 28, 2014 15:00

Quote:

Originally Posted by cnsidero (Post 477339)
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


All times are GMT -4. The time now is 06:10.