CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   STAR-CD (http://www.cfd-online.com/Forums/star-cd/)
-   -   transient data plots (http://www.cfd-online.com/Forums/star-cd/116884-transient-data-plots.html)

lunar1984 April 27, 2013 00:13

transient data plots
 
Hi All,

I am working on diesel cyclic simulation. Recently, I would like to plot contour of fuel concentration and equivalence ratio from the transient data (*.ccmt). However, I use multi compound as fuel in the simulation such as n-c7h16 and ic8h18. I don't know how to plot. Please give some ideas.

Thank you in advance.

skylent April 27, 2013 07:38

use "operate" command
such as
...
operate getc,conc,1,1 !fuel 1
operate getc,conc,2,2 !fuel 2
operate add 1,2,4 !fuel1+fuel 2
...
cplot

Quote:

Originally Posted by lunar1984 (Post 423460)
Hi All,

I am working on diesel cyclic simulation. Recently, I would like to plot contour of fuel concentration and equivalence ratio from the transient data (*.ccmt). However, I use multi compound as fuel in the simulation such as n-c7h16 and ic8h18. I don't know how to plot. Please give some ideas.

Thank you in advance.


lunar1984 April 27, 2013 23:16

Quote:

Originally Posted by skylent (Post 423508)
use "operate" command
such as
...
operate getc,conc,1,1 !fuel 1
operate getc,conc,2,2 !fuel 2
operate add 1,2,4 !fuel1+fuel 2
...
cplot

Hi Skylent,
I know you are one of the expert here. lol
would you please check the code as following? Thank you very much.


!Plot cell-averaged equivalence ratio
*set,safr, 15.07 !stoichiometry air fuel ratio (average of C7 and C8)
!the mass fraction of heptane vapor
operate,getc,conc,1,1

!the mass fraction of isooctane vapor
operator,getc,conc,2,31

!the mass fraction of oxygen-- last number match the scalar in the mechanism
operate,getc,conc,3,2
!
!sum of fuel vapor
operate,add,1,2,4

!the mass fraction of air in the cell=m_O2/0.2331
operate,smultiply,4.291845494,2,5

operate,divide,4,5,6 !F/A =fuel_air ratio
operate,smultiply,safr,6,7 !phi=F/A*sto_A/F
...
...
...
cplot

lunar1984 April 27, 2013 23:48

scalar 1 "C7H16"
scalar 2 "O2"
scalar 31 "IC8H18"

additional question: cplot is the command which just plots the concentration of the last "register number", right? Thanks.

skylent April 28, 2013 02:10

cplot is the command which just plots the scalar in "register 4".
and all the register we used is only from register 1~register 6,no register 7
so change the last operate command line as "operate,smultiply,safr,6,4"

bless
-----------------------------------------------------------------
Quote:

Originally Posted by lunar1984 (Post 423561)
Hi Skylent,
I know you are one of the expert here. lol
would you please check the code as following? Thank you very much.


!Plot cell-averaged equivalence ratio
*set,safr, 15.07 !stoichiometry air fuel ratio (average of C7 and C8)
!the mass fraction of heptane vapor
operate,getc,conc,1,1

!the mass fraction of isooctane vapor
operator,getc,conc,2,31

!the mass fraction of oxygen-- last number match the scalar in the mechanism
operate,getc,conc,3,2
!
!sum of fuel vapor
operate,add,1,2,4

!the mass fraction of air in the cell=m_O2/0.2331
operate,smultiply,4.291845494,2,5

operate,divide,4,5,6 !F/A =fuel_air ratio
operate,smultiply,safr,6,7 !phi=F/A*sto_A/F
!spoint 0 0 0
!snormal 0 1 0 !
cset, all
caverage, cset
poption,contour !
pltype,section !
angle 0 !
view snormal !
cplot


lunar1984 April 28, 2013 08:58

If change to "operate, safr, 6, 4 " , then we will have two "register 4". the other one is
!sum of fuel vapor
operate,add,1,2,4

Is it still fine?? which one will be showed in cplot??

Additionally, in order to plot [OH] "scalar 8", is it still fine to use ......
operate, getc,conc,4,8 (since I checked, "getc,conc,8" doesn't work)
...
...
cplot


Thank you very much.


Quote:

Originally Posted by skylent (Post 423565)
cplot is the command which just plots the scalar in "register 4".
and all the register we used is only from register 1~register 6,no register 7
so change the last operate command line as "operate,smultiply,safr,6,4"

bless
-----------------------------------------------------------------


skylent April 29, 2013 01:29

It is fine, as register 4 can be used repeatly and the content in register can be overrided.
Cplot command ONLY can plot the scalar in register 4,or vector in register 1~3,as I mentioned before.
bless.


All times are GMT -4. The time now is 14:58.