# compute volume integral of a scalar variable

 Register Blogs Members List Search Today's Posts Mark Forums Read

 May 12, 2013, 20:30 compute volume integral of a scalar variable #1 Senior Member   Vishal Nandigana Join Date: Mar 2009 Location: Champaign, Illinois, U.S.A Posts: 208 Rep Power: 10 Dear Foamers, I would like to numerically compute the volume integral of my scalar variable defined as C1 over the entire domain. Mathematically integrate(C1(x,y,z) dx dy dz) from x = x1 to x2, y =y1 to y2 and z = z1 to z2 where x1,x2, y1,y2 and z1,z2 are the ends of the domain in x,y and z directions, respectively. Please let me know how to incorporate this in my solver. Thanks Regards, Vishal

 May 13, 2013, 05:26 #2 Member   Duong A. Hoang Join Date: Apr 2009 Location: Delft, Netherlands Posts: 92 Rep Power: 9 Well the easiest solution is to sum up C1*V over the entire domain where C1 and V are the value of your variable and the cell volume. Cheers, D

 Thread Tools Display Modes Linear Mode

 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 OffTrackbacks are On Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post letzel OpenFOAM Running, Solving & CFD 2 May 13, 2015 03:58 liguifan OpenFOAM Running, Solving & CFD 5 June 3, 2014 02:53 nennbs OpenFOAM Native Meshers: blockMesh 7 April 17, 2013 05:42 charlotte CFX 4 March 22, 2011 10:14 gruber2 OpenFOAM Installation 5 December 30, 2005 05:27

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