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

[swak4Foam] Error with GroovyBC for robin boundary condition

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By ancolli

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 20, 2018, 06:37
Default Error with GroovyBC for robin boundary condition
  #1
New Member
 
Nick
Join Date: Dec 2018
Posts: 2
Rep Power: 0
doppler28 is on a distinguished road
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);
}
and for some reason i get the error :

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??
doppler28 is offline   Reply With Quote

Old   January 15, 2019, 13:09
Default
  #2
Senior Member
 
Alejandro
Join Date: Jan 2014
Location: Argentina
Posts: 128
Rep Power: 12
ancolli is on a distinguished road
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())));"
		);
}
MCrossover97 likes this.
ancolli is offline   Reply With Quote

Reply


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
My radial inflow turbine Abo Anas CFX 27 May 11, 2018 01:44
[swak4Foam] Boundary condition set using groovyBC or codedFixedValue behzad-cfd OpenFOAM Community Contributions 17 December 19, 2017 12:30
Wrong flow in ratating domain problem Sanyo CFX 17 August 15, 2015 06:20
Question about heat transfer coefficient setting for CFX Anna Tian CFX 1 June 16, 2013 06:28
[swak4Foam] turbulence boundary condition in groovyBC. immortality OpenFOAM Community Contributions 6 January 7, 2013 03:19


All times are GMT -4. The time now is 11:24.