CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > Siemens > STAR-CCM+

Mass flow of each cell

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 1, 2017, 03:25
Default Mass flow of each cell
  #1
New Member
 
Paresh
Join Date: Jun 2017
Location: Austria
Posts: 27
Rep Power: 8
pary07 is on a distinguished road
Hello,

In version 12.02, how can we calculate the mass flow of each cell? I am interested in creating a field function which involves mass flow rate of each cell multiplied by velocity and its distance from the coordinate system, like this Mi*(Velocity, i x distance, i). Then I would like Sum these values over a section plane?
I also tried XYZ table with function as Mass flow rate or Mass flux, but it's giving me a double variable value(1.7976931348623157E+308) for all of the cells and that's wrong. Does anyone know why am I getting double variable as an answer? or what is the method to find the mass flow rate of individual cells?




Thank you in advance.
pary07 is offline   Reply With Quote

Old   September 1, 2017, 11:00
Default
  #2
Senior Member
 
Join Date: Nov 2010
Location: USA
Posts: 1,232
Rep Power: 24
me3840 is on a distinguished road
I'm not sure what the mass flow rate of a cell means. Cells are volumes, their mass flow is zero if the simulation is converged.
me3840 is offline   Reply With Quote

Old   September 2, 2017, 02:36
Default
  #3
New Member
 
Paresh
Join Date: Jun 2017
Location: Austria
Posts: 27
Rep Power: 8
pary07 is on a distinguished road
Hi,
Thank you for replying- I am trying to calculate the angular momentum inside a cylinder at a specific plane selection. Angular momentum Iw=mvr, therefore w= mvr/mr^2, here the m would represent the mass flow the cell i, v would be tangent velocity and r would be a distance of the cell. This I found in one of the SAE papers, and therefore I was trying to figure out the mass flow of the cell. So is this not possible?
pary07 is offline   Reply With Quote

Old   December 5, 2020, 10:16
Default
  #4
New Member
 
Gerhard
Join Date: Mar 2017
Posts: 26
Rep Power: 9
Gerhard is on a distinguished road
Hi,
Well, you could for example include a cell zone in the cylinder of width = W with nCells = N in the axial direction inside that cell zone. The following should then give you the cross-sectional area and mass flow through the cell, respectively.
Code:
const scalarField &V = mesh.V();
forAll(yourCellZone, index)
{
  label i = yourCellZone[index];
  scalar A_x = V[i] / (W / N);  // NB: assumes cells are prismatic
  scalar mdot = rho[i] * (U[i] & orientationVector) * A_x;
}
You will have to define that orientationVector, width and nCells for the cell zone.
There is hopefully an easier way to do what you want here, but I just thought I might as well share my thoughts here... Someone else might be able to improve on it.
Gerhard 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
mass flow in is not equal to mass flow out saii CFX 12 March 19, 2018 05:21
Mass flow discrepancy BenMUC CFX 3 May 2, 2014 03:29
total mass loss/gain--simulating taylor couette flow nwpukaka OpenFOAM Programming & Development 0 February 12, 2014 18:57
[Commercial meshers] Trimmed cell and embedded refinement mesh conversion issues michele OpenFOAM Meshing & Mesh Conversion 2 July 15, 2005 04:15
Mass Flow Inlet Pravir Kumar Rai FLUENT 0 February 19, 2003 14:03


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