Error with codedFixedValue BC
Hi Foamers,
I want to use the codedFixedValue to set boundary conditions for a volScalarField to be 0 if the Y-Co larger than 2.5 and 1 otherwise. I tried this code: Code:
BoundaryName Which includes should I have as well? By the way the error I get is: Code:
Setting internal values of volScalarField alpha1 Best Regards, Hisham |
Quote:
i'm not sure aboute code fixed Value stuff but it seems to me that there are two Operators in your equation. The first is the equal introduced after operator and then there is the operator > before the 2.5 maybe you have to check the syntax Greetz Jim |
Hi Jim,
I appreciate your answer. I think I need more tutorials on the codedBC. The only available one, is in its header file: Code:
code I had a workaround for my problem. Nevertheless, the coded BC is a nice tool to have by one's side. Regards Hisham |
hi,
codedFixedValue is like other inherited from fixedValueFvPatchField<> I tested this below code for pitzDaily , simpeFoam solver. U = 100 * y^2; Code:
inlet |
Hi Bruce,
If I want to apply the codedfixedValue under icoFoam application, do I need to do something extra, like adding some library and recompiling??? Thanks. |
The error message can be fixed by flagging "allowSystemOperations" in controlDict under /openfoam211/etc system directory. You should simply change it to 1 from 0. If permission is denied since you have installed OpenFoam under root directory then go to the above directory and type:
$ sudo gedit controlDict This enables you to change the setting and save the file. |
All times are GMT -4. The time now is 18:01. |