groovyBC synthax help
I'm trying to set a velocity profile at my inlet for a 2D laminar flow using 1.6-ext
The equation I'm trying to write is U(y)=3/2*U0*(1-(2*y^2)/b^2) From looking at other threads this is the best I could come up with: Code:
inlet gradientInternalCoeffs cannot be called for a genericFvPatchField (actual type groovyBC) on patch inlet of field U in file "/home/OpenFOAM/Simulation/test_1/0/U" You are probably trying to solve for a field with a generic boundary condition. From function genericFvPatchField<Type>::gradientInternalCoeffs( ) const in file fields/fvPatchFields/basic/generic/genericFvPatchField.C at line 782. |
Quote:
1) in syntacs why ^ use (2*pow(y,2)) for example for 2*y^2 2)you should add following sentence to the controlDict : libs ("libOpenFOAM.so""libgroovyBC.so"); |
Works great. Thanks
|
Dear Badly,
Sorry... |
Quote:
|
Quote:
|
All times are GMT -4. The time now is 09:50. |