|
[Sponsors] |
June 23, 2006, 05:42 |
I want to do a volume average
|
#1 |
Member
chris book
Join Date: Mar 2009
Posts: 85
Rep Power: 17 |
I want to do a volume average of volScalarField and from this scalar I want to calc the time devirative.
I have tried: scalar dpmdt = ddt(p.weightedAverage(mesh.V()).value()); but the ddt function does not allow a scalar argument. How can I do this? |
|
June 23, 2006, 14:50 |
Basically, by hand: store seve
|
#2 |
Senior Member
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,907
Rep Power: 33 |
Basically, by hand: store several scalars and calculate the ddt directly from their values. A scalar variable is just a float (or a double) and it does not record its own history.
Hrv
__________________
Hrvoje Jasak Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
IS calc. with 2nd order discret. always necessary? | Azman | FLUENT | 2 | March 14, 2013 05:28 |
the derivative of Scalar on time ? | owen | FLUENT | 0 | March 5, 2009 05:59 |
The Time dependent Scalar-Transport Equation | Michail | Main CFD Forum | 0 | April 26, 2004 20:07 |
Can someone help me calc. flow through this???? | Todd | Main CFD Forum | 3 | January 17, 2002 09:35 |
calc time | Andrew Parker | FLUENT | 4 | November 29, 2001 06:10 |