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

[swak4Foam] How to use Cp and Cv filds in groovyBC?

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By gschaider

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   June 23, 2013, 04:38
Default How to use Cp and Cv filds in groovyBC?
  #1
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26
immortality is on a distinguished road
Hi
I want to use Cp and Cv fields in groovyBC as I told in the title.
does it need that these fields necessarily be written in time folders so that groovyBC can use them or not?
how to introduce these fields that computes by the solver(as Mach postProcessing tool uses them) to groovyBC?
I have written these lines in variables:
Code:
//"gamma=thermo.Cp()/thermo.Cv();"
                  //"Cp=thermo.Cp();"
                  //"Cv=thermo.Cv();"
                  "p_3=p0_3/pow(1+magSqr(U)/(2*Cp*T),Cp/(Cp-Cv));"
and the error:
Code:
--> FOAM FATAL ERROR: 
 Parser Error for driver PatchValueExpressionDriver at "1.25-26" :"field Cp not existing or of wrong type"
"p0_3/pow(1+magSqr(U)/(2*Cp*T),Cp/(Cp-Cv))"
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King.
To Be or Not To Be,Thats the Question!
The Only Stupid Question Is the One that Goes Unasked.
immortality is offline   Reply With Quote

 


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



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