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

globalContErr

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

Reply
 
LinkBack Thread Tools Display Modes
Old   February 1, 2012, 13:20
Default globalContErr
  #1
Senior Member
 
Illya Shevchuk
Join Date: Aug 2009
Location: Darmstadt, Germany
Posts: 120
Rep Power: 4
linch is on a distinguished road
Hi,

I have a question to following lines in src/finiteVolume/cfdTools/incompressible/continuityErrs.H
Code:
volScalarField contErr = fvc::div(phi);
scalar globalContErr = runTime.deltaT().value()*
        contErr.weightedAverage(mesh.V()).value();
globalContErr should be an integral of the error over the complete domain volume and time step. fvc::div(phi) is a volume integral for each cell. Thus, time integration and summation over all cells is needed to obtain the global error. We already have the time integration *runTime.deltaT(), but why do we have averaging instead of summation over all cells?

Best regards,
Ilya

Last edited by linch; February 2, 2012 at 04:13.
linch is offline   Reply With Quote

Old   February 8, 2012, 07:07
Default
  #2
Senior Member
 
Illya Shevchuk
Join Date: Aug 2009
Location: Darmstadt, Germany
Posts: 120
Rep Power: 4
linch is on a distinguished road
No ideas?
linch is offline   Reply With Quote

Old   February 9, 2012, 09:06
Default
  #3
Senior Member
 
David Boger
Join Date: Mar 2009
Location: Penn State Applied Research Laboratory
Posts: 146
Rep Power: 5
boger is on a distinguished road
I don't have any answers for you, except to add my own observation that the localContErr would, I think, be equivalent to the L1-norm of the pressure equation residual were it not for the volume-averaging.
__________________
David A. Boger
boger is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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



All times are GMT -4. The time now is 18:17.