|
[Sponsors] |
[swak4Foam] GroovyBC - issue with non-uniform inlet |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 3, 2019, 07:15 |
GroovyBC - issue with non-uniform inlet
|
#1 |
New Member
Sina
Join Date: Jun 2015
Posts: 7
Rep Power: 11 |
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); } 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. |
|
Tags |
groovybc, non-uniform bc, openfoam, swak4foam |
|
|
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 |