|
[Sponsors] |
[swak4Foam] boundary condition using groovyBC |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 23, 2015, 14:31 |
boundary condition using groovyBC
|
#1 |
Member
Mehtab
Join Date: Jan 2015
Posts: 41
Rep Power: 11 |
Hi
I would like to implement some boundary conditions using groovyBC and need some help in this regard. 1> Temperature boundary at Inlet T_s = T_0 + 1/C_p(Q_f/m" - Hvap) Here Q_f and m ̇ " needs to be computed for inlet patch at previous time step. Also C_p needs to be updated from thermo Is it possible to do it using groovyBC? Which option is better groovyBC or codedFixedValue in OpenFOAM. Thanks in advance..... Last edited by mehtab; April 29, 2015 at 07:44. |
|
April 27, 2015, 08:39 |
|
#2 | |||
Member
Mehtab
Join Date: Jan 2015
Posts: 41
Rep Power: 11 |
Hi,
I tried implementing temperature boundary condition at Inlet as: T_s = T_0 + 1/C_p(Q_f/m" - Hv) Here is my files Quote:
Quote:
Quote:
swak4Foam: Setting default mesh swak4Foam: Allocating new repository for sampledGlobalVariables --> FOAM Warning : From function ConcretePluginFunction<DriverType>::exists in file lnInclude/ConcretePluginFunction.C at line 121 Constructor table of plugin functions for PatchValueExpressionDriver is not initialized --> FOAM FATAL ERROR: Parser Error for driver PatchValueExpressionDriver at "1.1-2" :"field Qr not existing or of wrong type" "Qr" ^^ --| Context of the error: - Driver constructed from scratch Evaluating expression "Qr" From function parsingValue in file lnInclude/CommonValueExpressionDriverI.H at line 1189. FOAM exiting What should I modify in me expressions? Have I defined cp correctly or should I change to thermo.Cp? Here Qr is totat radiative flux being calculated through radiation model. I am not able to understand the error. Please help Thanks in advance.... Last edited by mehtab; April 29, 2015 at 07:48. |
||||
Tags |
gschaider |
|
|
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 |