|
[Sponsors] |
[swak4Foam] groovyBC - non uniform gradient problem |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 5, 2015, 17:40 |
groovyBC - non uniform gradient problem
|
#1 |
Member
Luca
Join Date: Mar 2011
Location: Italy
Posts: 62
Rep Power: 15 |
Hallo,
I am solving a three dimensional pipe flow with a non-uniform applied gradient on half its surface. I am using the following groovyBC: Code:
wallHeat { type groovyBC; gradientExpression "2e5/4*pi*cosTheta"; fractionExpression "0"; variables "r=sqrt(sqr(pos().x)+sqr(pos().y));cosTheta=mag(pos().x/r);"; refGradient uniform 50000; refValue uniform 50000; value uniform 50000; } The internalField values of T1 are correct but the boundary values on the above patch are not because they are always set at the specified uniform value and not as a nonUniform List as for the field T: For T1: Code:
wallHeat { type groovyBC; refValue uniform 50000; refGradient uniform 50000; valueFraction uniform 1; value uniform 50000; valueExpression "0"; gradientExpression "2e5/4*pi*cosTheta"; fractionExpression "0"; evaluateDuringConstruction 0; variables 2 ( "r=sqrt(sqr(pos().x)+sqr(pos().y));" "cosTheta=mag(pos().x/r);" ) ; timelines ( ); lookuptables ( ); Code:
wallHeat { type groovyBC; refValue uniform 0; refGradient nonuniform List<scalar> 400 ( 157049 156807 156323 155598 . . . valueFraction uniform 0; value nonuniform List<scalar> 400 ( 479.485 479.069 478.242 477.005 . . . ) ; valueExpression "0"; gradientExpression "2e5/4*pi*cosTheta"; fractionExpression "0"; evaluateDuringConstruction 0; variables 2 ( "r=sqrt(sqr(pos().x)+sqr(pos().y));" "cosTheta=mag(pos().x/r);" ) ; timelines ( ); lookuptables ( ); Can someone help? Thank you in advance, Luca |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
wallHeatFlux utility for an incompressible case | Mr.Jingles | OpenFOAM Post-Processing | 67 | April 6, 2023 04:25 |
multiphaseEulerFoam/tank discharge | ves | OpenFOAM Running, Solving & CFD | 8 | December 31, 2017 15:59 |
Wrong Boundary Conditions (maximum number of iterations) in compressibleInterDyMFoam | silencebreak | OpenFOAM Running, Solving & CFD | 0 | September 11, 2017 08:05 |
Boundary Conditions | MtnRunBeachBum | OpenFOAM Pre-Processing | 1 | April 30, 2015 17:33 |
Need help with boundary conditions: open to atmosphere | Wolle | OpenFOAM | 2 | April 11, 2011 08:32 |