|
[Sponsors] | |||||
[swak4Foam] GroovyBC lookuptabels parser problem |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|
|
#1 |
|
New Member
Chris
Join Date: Nov 2021
Posts: 12
Rep Power: 6 ![]() |
Hey everyone,
I'm running OF 8 and swak4Foam. This is how I implemented a BC: Code:
WALL_BK
{
type groovyBC;
valueExpression "value";
variables
(
"value=tbl(pos().x*1e3, 0);" //Conversion from m in mm
);
lookuptables2D (
{
outOfBounds clamp;
format foam;
name tbl;
file "$FOAM_CASE/constant/Twall.dat";
}
);
value uniform 400;
}
Code:
WALL_BK
{
type groovyBC;
refValue uniform 400;
refGradient uniform 0;
valueFraction uniform 1;
value uniform 400;
valueExpression "value";
gradientExpression "0";
fractionExpression "1";
evaluateDuringConstruction 0;
cyclicSlave 0;
variables "value=tbl(pos().x*1e3, 0);";
timelines (
);
lookuptables (
);
lookuptables2D (
{
name tbl;
}
);
Thanks in Advance! Last edited by Jury; February 11, 2022 at 06:52. |
|
|
|
|
|
![]() |
| Tags |
| groovybc, lost, parser, swak4foam, variables |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [swak4Foam] swak4foam 0.4.2, groovyBC parallel diverging, openfoam extend 4.0 | Kombinator | OpenFOAM Community Contributions | 4 | November 24, 2020 09:42 |
| [swak4Foam] reactingMultiPhaseEulerFoam problems with groovyBC | zanilu70 | OpenFOAM Community Contributions | 4 | December 13, 2016 07:46 |
| [swak4Foam] epsilon groovyBC problem | Thom | OpenFOAM Community Contributions | 5 | October 26, 2012 06:16 |
| [swak4Foam] Problem with free surface in groovyBC | Hisham | OpenFOAM Community Contributions | 2 | August 4, 2011 09:23 |