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

Divide a surface quantity by the patch area

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 26, 2020, 21:52
Default Divide a surface quantity by the patch area
  #1
New Member
 
Charles McCreary
Join Date: Jun 2010
Posts: 12
Rep Power: 15
crmccreary is on a distinguished road
I would like to divide a surface quantity by the patch area.
Specifically, I am using MPPICFoam and calculating particle erosion, Q.
Q is in L^3 (m^3).

I would like to divide Q by the patch area to get a new variable in terms of L (m).
I could modify the particle erosion function to create a new variable, but I would then need to re-run the model.

How can I accomplish this post-processing task either using a post-processing function or paraview?
crmccreary is offline   Reply With Quote

Old   August 28, 2020, 16:08
Default
  #2
New Member
 
Charles McCreary
Join Date: Jun 2010
Posts: 12
Rep Power: 15
crmccreary is on a distinguished road
To answer my own question, I accomplished my objective in two ways.
I modified ParticleErosion.C to divide by the cell face area so that I get wall loss due to erosion.

Using the python calculator in Paraview,
inputs[0].CellData['kinematic:Q']/area(inputs[0])
crmccreary is offline   Reply With Quote

Reply

Tags
openfoam particle erosion


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
[OLAFLOW] The OLAFLOW Thread Phicau OpenFOAM Community Contributions 457 March 27, 2024 00:59
y+ and u+ values with low-Re RANS turbulence models: utility + testcase florian_krause OpenFOAM 114 August 23, 2023 05:37
[Commercial meshers] Mesh conversion problem (fluent3DMeshToFoam) Aadhavan OpenFOAM Meshing & Mesh Conversion 2 March 8, 2018 01:47
[snappyHexMesh] Bad meshing result on corrugated metal sheet UebertreibeR OpenFOAM Meshing & Mesh Conversion 1 August 19, 2016 04:55
[GAMBIT] periodic faces not matching Aadhavan ANSYS Meshing & Geometry 6 August 31, 2013 11:25


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