CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

Temperature variable

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By iconde

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 5, 2019, 02:56
Default Temperature variable
  #1
New Member
 
Anna
Join Date: Feb 2019
Posts: 17
Rep Power: 7
iconde is on a distinguished road
Hi there,

I'm trying to use GroovyBC for boundary conditions. I have this code in Temperature boundary conditions file, which works on chtMultiRegionFoam:

Quote:
type groovyBC;
value uniform 300;
gradientExpression "-h/k*(T-Ta)";
fractionExpression "0";
variables "h=10;k=20;Ta=300;";

My problem is that I want to use it with twoPhaseEulerFoam solver, but it doesnīt work, I'm sure that is because here, T variable is divided in T.water and T.air, but I donīt know which name should have. If I change the variable T for the variable T.air I have this error:

Anyone knows which name should i use?

Quote:
--> FOAM FATAL ERROR:
Parser Error for driver PatchValueExpressionDriver at "1.7-9" :"field T.air not existing or of wrong type"
"-h/k*(T.air-Ta)"
Thank you for your attention!

Best regards
a.hajisharifi likes this.
iconde is offline   Reply With Quote

Old   August 3, 2021, 09:25
Default
  #2
New Member
 
Arash
Join Date: Dec 2015
Location: vienna
Posts: 15
Rep Power: 10
a.hajisharifi is on a distinguished road
Dear Anna

I have the same problem. did you managed to solve your problem?

Bests
a.hajisharifi 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
CFX - Bingham Model with yield stess variable with temperature annagoco ANSYS 1 July 16, 2019 16:26
Problem with zeroGradient wall BC for temperature - Total temperature loss cboss OpenFOAM 12 October 1, 2018 06:36
How to Assign wall temperature to a variable? Haseeb Fluent UDF and Scheme Programming 1 June 1, 2017 07:51
Particle solid specific heat variable with temperature pantarei83 CFX 3 June 10, 2009 18:06
Variable temperature on the wall as the Boundary Condition mbahonar FLUENT 1 May 22, 2009 16:50


All times are GMT -4. The time now is 19:41.