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

[swak4Foam] GroovyBC - issue with non-uniform inlet

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 3, 2019, 07:15
Default GroovyBC - issue with non-uniform inlet
  #1
New Member
 
Sina
Join Date: Jun 2015
Posts: 7
Rep Power: 10
Sina.Li is on a distinguished road
I am new to GroovyBC but will try to explain the issue. I have built the last version of GroovyBC on openfoam 5. Now trying to apply a non-uniform velocity as an inlet boundary condition to a jet fan suspending in the air (solver: simpleFoam). This is the BC I set:
Code:
     fanOutlet
    {
        type                groovyBC;
        variables "Uavg=-7;yp=pts().y;xp=pts().x;minY=min(yp);maxY=max(yp);minX=min(xp);maxX=max(xp);ctrX=0.5*(min(xp)+max(xp));ctrY=0.5*(min(yp)+max(yp));";
        valueExpression "(Uavg/0.64)*(1-pow((pos().x-ctrX)/ctrX,4)*(1-pow((pos().y-ctrY)/ctrY,4)*normal()";
        value           uniform (0 0 -7);
    }
and when trying to run, I get the following message and the run before starting ends:
Code:
swak4Foam: Allocating new repository for sampledGlobalVariables

tried to debug: When changing the expression to a constant it works. when changing pts() to pos() (to check if it is compilation problem) then it would start the run, but from the beginning it diverges.

PS: just attached the screenshot when running with uniform fixed velocity.
Sina.Li is offline   Reply With Quote

Reply

Tags
groovybc, non-uniform bc, openfoam, swak4foam

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
Pipeflow with interFoam, kOmegaSST floating point error by initial condition? silencebreak OpenFOAM Running, Solving & CFD 4 July 2, 2017 10:56
Circulating Tank - Unphysical results shootthemoon OpenFOAM Running, Solving & CFD 1 May 16, 2017 06:11
[swak4Foam] Trouble setting groovyBC interFoam Inlet BC mgdenno OpenFOAM Community Contributions 4 July 1, 2012 09:16
chtMultiRegionSimpleFoam javad814 OpenFOAM 1 September 26, 2011 14:30
Problems with Turbulence Modeling ezsoal OpenFOAM Running, Solving & CFD 4 November 26, 2009 16:12


All times are GMT -4. The time now is 05:09.