|February 18, 2014, 15:44||
Control Volume analysis, change in momentum
Join Date: Apr 2013
Posts: 4Rep Power: 4
I'm attempting to calculate values of different fields and functionObjects through an arbitrary internal surface.
For example, if I had flow around a cylinder, and I wanted to calculate the change in momentum (or any field, for that matter) from an upstream slice or surface to a downstream surface, how would I go about that in OpenFOAM's post-processing?
I've looked into faceSet, sample, and createPatch, but I'm not sure I've approached it correctly.
I've used a "power calculation" in createFields by using a surfaceScalarField: (0.5*(linearInterpolate(U)&linearInterpolate(U))+l inearInterpolate(p))*(linearInterpolate(U) & mesh.Sf()) which I believe would calculate the power at every cell. I can use patchIntegrate to use this at the outlet and inlet of the domain, but patchIntegrate can't be used on internal surfaces.
Any suggestions or tips on how to implement this would be greatly appreciated. Thanks.
|Thread||Thread Starter||Forum||Replies||Last Post|
|CFX13 Post Periodic interface||EtaEta||CFX||7||December 8, 2011 18:15|
|channelFoam for a 3D pipe||AlmostSurelyRob||OpenFOAM||3||June 24, 2011 13:06|
|Derivation of Momentum Equation in Integral Form||Demonwolf||Main CFD Forum||2||October 29, 2009 20:53|
|help needed about phase change||Yanhu Guo||Main CFD Forum||4||January 24, 2001 00:16|
|Control Volume FEM||Charles||Main CFD Forum||0||February 26, 1999 05:19|