CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   CD-adapco (http://www.cfd-online.com/Forums/cd-adapco/)
-   -   how to calculate scalar data at a particular plane (http://www.cfd-online.com/Forums/cd-adapco/56638-how-calculate-scalar-data-particular-plane.html)

premchand May 26, 2008 08:10

how to calculate scalar data at a particular plane
 
Dear Friends,

My problem involves some chemical reactions which had modeled by using diffusion reaction model and chemical kinetics. Now I want to calculate the scalar data involved in chemical reactions at a particular plane.Suppose If I want to calculate concentration of H2O at a particular plane in the geometry, how should I proceed? I tried to load the mass fraction of a scalar into a register and then to save it as data output file through operate command. but Its giving me the all cells data. but I want only a particular set of cells data. How can I get it? please help me in this regard. Thanks in advance.

James May 26, 2008 08:53

Re: how to calculate scalar data at a particular p
 
Within Prostar you can use INTE or SUMM, depending on what you want to do. You can then *GET these values and put them in a graph register which you can then either plot or write out.

Pauli May 27, 2008 00:36

Re: how to calculate scalar data at a particular p
 
If your grid allows, you could build a set of one cell layer. Then operate on the cell set.

But, if you want a plane (no thickness):

Use spoint & snorm to define the plane.

Use pscreate to create post shells.

Use pmap to map the results to the post shells

Use summ and/or integrate on the post shells.

I think their is an easier way but can't remember it off the top of my head.

premchand May 27, 2008 00:44

Re: how to calculate scalar data at a particular p
 
Thank you Pauli. I can collect a layer of cells. If I do integration command INTE, it will give average of all the cells in the cellset.But I want to have the data of cell set, like for this cell this much mass fraction like that for all the cells in the cell set. I have to estimate the uniformity of a scalar at a particular section( at a layer of cells), for this I have to find the difference between the cell calue and the average value of all the cells. For this I need individual cell values. Please help me in this regard. How can I extract each cell data of a particular cell set. thank you so much.

Pauli May 27, 2008 10:32

Re: how to calculate scalar data at a particular p
 
Here are a few commands that will give you individual cell values.

sprint savuser print


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