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

[Other] groovyBC Error

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 18, 2022, 05:59
Default groovyBC Error
  #1
New Member
 
Vahid
Join Date: Apr 2021
Posts: 3
Rep Power: 4
Kavi is on a distinguished road
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();";
    }
but, I got the error:

Code:
--> FOAM FATAL ERROR: (openfoam-2106 patch=211215)
The expected return type scalar is different from the stored result type "vector"
also, when I removed the term *normal() I got the:

Code:
--> FOAM FATAL ERROR: (openfoam-2106 patch=211215)
The expected return type vector is different from the stored result type "scalar"
Does anyone know how can I get rid of this error?

Thanks in advance.
Kavi is offline   Reply With Quote

Reply

Tags
groovybc, parabolicvelocityprofile

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
[OpenFOAM.org] compile error in dynamicMesh and thermophysicalModels libraries NickG OpenFOAM Installation 3 December 30, 2019 01:21
[blockMesh] blockMesh with double grading. spwater OpenFOAM Meshing & Mesh Conversion 92 January 12, 2019 10:00
[swak4Foam] GroovyBC the dynamic cousin of funkySetFields that lives on the suburb of the mesh gschaider OpenFOAM Community Contributions 300 October 29, 2014 19:00
OpenFOAM without MPI kokizzu OpenFOAM Installation 4 May 26, 2014 10:17
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 18:51


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