|
[Sponsors] |
![]() |
![]() |
#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? |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,906
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 |
|
![]() |
![]() |
![]() |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
IS calc. with 2nd order discret. always necessary? | Azman | FLUENT | 2 | March 14, 2013 04:28 |
the derivative of Scalar on time ? | owen | FLUENT | 0 | March 5, 2009 04:59 |
The Time dependent Scalar-Transport Equation | Michail | Main CFD Forum | 0 | April 26, 2004 19:07 |
Can someone help me calc. flow through this???? | Todd | Main CFD Forum | 3 | January 17, 2002 08:35 |
calc time | Andrew Parker | FLUENT | 4 | November 29, 2001 05:10 |