|
[Sponsors] |
[swak4Foam] Error with GroovyBC for robin boundary condition |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
December 20, 2018, 07:37 |
Error with GroovyBC for robin boundary condition
|
#1 |
New Member
Nick
Join Date: Dec 2018
Posts: 2
Rep Power: 0 |
Hello , i am using openfoam to solve two poisson equations(Naviers-stokes and Megnetic equation ) and i need to implement robin boundary condition using GroovyBC for the the induced magnetic field(Bi) in my 0 file i have for Bi
Code:
upperWall { type groovyBC; variables "k=1;alpha=0.01;f=1/(1+k/(alpha*mag(delta())));"; valueExpression "vector(0,0,0)"; gradientExpression "vector(0,0,0)"; fractionExpression "f"; value uniform (0 0 0); } Code:
Starting time loop Courant Number mean: 0 max: 0 smoothSolver: Solving for Ux, Initial residual = 0, Final residual = 0, No Iterations 0 smoothSolver: Solving for Uy, Initial residual = 1, Final residual = 8.33843e-06, No Iterations 14 swak4Foam: Allocating new repository for sampledGlobalVariables --> FOAM Warning : From function ConcretePluginFunction<DriverType>::exists in file lnInclude/ConcretePluginFunction.C at line 116 Constructor table of plugin functions for PatchValueExpressionDriver is not initialized --> FOAM FATAL ERROR: Parser Error for driver PatchValueExpressionDriver at "1.1" :"field f not existing or of wrong type" "f" ^ --| Context of the error: - From dictionary: /home/cfdlab/OpenFOAM/cfdlab-4.1/run/initialmhdFoam/Hunt/Ha_500/0/Bi.boundaryField.lowerWall Evaluating expression "f" From function parsingValue in file lnInclude/CommonValueExpressionDriverI.H at line 1246. FOAM exiting does anyone have any ideas why it doesn't accept my fractionExpression f?? |
|
January 15, 2019, 14:09 |
|
#2 |
Senior Member
Alejandro
Join Date: Jan 2014
Location: Argentina
Posts: 128
Rep Power: 12 |
I do not know, but... did u try to put your variables in the following way?
Code:
upperWall { type groovyBC; valueExpression "vector(0,0,0)"; gradientExpression "vector(0,0,0)"; fractionExpression "f"; value uniform (0 0 0); variables ( "k=1;" "alpha=0.01;" "f=1/(1+k/(alpha*mag(delta())));" ); } |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
My radial inflow turbine | Abo Anas | CFX | 27 | May 11, 2018 02:44 |
[swak4Foam] Boundary condition set using groovyBC or codedFixedValue | behzad-cfd | OpenFOAM Community Contributions | 17 | December 19, 2017 13:30 |
Wrong flow in ratating domain problem | Sanyo | CFX | 17 | August 15, 2015 07:20 |
Question about heat transfer coefficient setting for CFX | Anna Tian | CFX | 1 | June 16, 2013 07:28 |
[swak4Foam] turbulence boundary condition in groovyBC. | immortality | OpenFOAM Community Contributions | 6 | January 7, 2013 04:19 |