|
[Sponsors] |
September 1, 2017, 04:25 |
Mass flow of each cell
|
#1 |
New Member
Paresh
Join Date: Jun 2017
Location: Austria
Posts: 27
Rep Power: 9 |
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. |
|
September 1, 2017, 12:00 |
|
#2 |
Senior Member
Join Date: Nov 2010
Location: USA
Posts: 1,232
Rep Power: 25 |
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.
|
|
September 2, 2017, 03:36 |
|
#3 |
New Member
Paresh
Join Date: Jun 2017
Location: Austria
Posts: 27
Rep Power: 9 |
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? |
|
December 5, 2020, 11:16 |
|
#4 |
New Member
Gerhard
Join Date: Mar 2017
Posts: 26
Rep Power: 9 |
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; } 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. |
|
|
|
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 06:21 |
Mass flow discrepancy | BenMUC | CFX | 3 | May 2, 2014 04:29 |
total mass loss/gain--simulating taylor couette flow | nwpukaka | OpenFOAM Programming & Development | 0 | February 12, 2014 19:57 |
[Commercial meshers] Trimmed cell and embedded refinement mesh conversion issues | michele | OpenFOAM Meshing & Mesh Conversion | 2 | July 15, 2005 05:15 |
Mass Flow Inlet | Pravir Kumar Rai | FLUENT | 0 | February 19, 2003 15:03 |