|
[Sponsors] |
![]() |
![]() |
#1 |
New Member
Vahid
Join Date: Apr 2021
Posts: 3
Rep Power: 5 ![]() |
Hello everyone,
I am trying to set up a case to simulate water current interaction and a solid disk. also, I am using SHM and extrudeMesh to mesh the model, simpleFoam or PimpleFoam as the solver. As the inlet velocity boundary condition, I want to implement a parabolic velocity profile, then I have used groovyBC as follows: Code:
inlet { type groovyBC; value $internalField; valueExpression "1*para"; variables "yp=pts().x;minY=min(yp);maxY=max(yp);para=-1.5*(maxY-pos().y)*(pos().y-minY)/(0.25*pow(maxY-minY,2))*normal();"; } Code:
--> FOAM FATAL ERROR: (openfoam-2106 patch=211215) The expected return type scalar is different from the stored result type "vector" Code:
--> FOAM FATAL ERROR: (openfoam-2106 patch=211215) The expected return type vector is different from the stored result type "scalar" Thanks in advance. |
|
![]() |
![]() |
![]() |
Tags |
groovybc, parabolicvelocityprofile |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM.org] compile error in dynamicMesh and thermophysicalModels libraries | NickG | OpenFOAM Installation | 3 | December 30, 2019 00:21 |
[blockMesh] blockMesh with double grading. | spwater | OpenFOAM Meshing & Mesh Conversion | 92 | January 12, 2019 09:00 |
[swak4Foam] GroovyBC the dynamic cousin of funkySetFields that lives on the suburb of the mesh | gschaider | OpenFOAM Community Contributions | 300 | October 29, 2014 18:00 |
OpenFOAM without MPI | kokizzu | OpenFOAM Installation | 4 | May 26, 2014 09:17 |
DecomposePar links against liblamso0 with OpenMPI | jens_klostermann | OpenFOAM Bugs | 11 | June 28, 2007 17:51 |