Main Page | Modules | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

e_tavg.h File Reference

Prototypes for functions to compute time averaged solutions. More...

#include <stdio.h>
#include <stdlib.h>
#include "../../util/source/useful.h"
#include "../../util/source/logfile.h"
#include "../../gas_models/source/gas.h"
#include "../../flux_calc/source/flux_calc.h"
#include "../../mb_cns/source/cns_case_id.h"
#include "../../mb_cns/source/cns_work_vector.h"
#include "../../mb_cns/source/cns_debug_level.h"
#include "../../mb_cns/source/cns_cell.h"
#include "../../mb_cns/source/cns_echo.h"
#include "../../mb_cns/source/cns_bc_defs.h"
#include "./e_block.h"

Go to the source code of this file.

Functions

int t_avg_3D (struct block_data_3D *A, int n, double dtav)
 Normalising the time integral by the time interval.
int t_avg_normalise_3D (struct block_data_3D *A, int nav, double dtav)
 Normalising the time integral by the time interval.


Detailed Description

Prototypes for functions to compute time averaged solutions.

Author:
AD
Version:
August 2004 bring code over from mb_cns.

Function Documentation

int t_avg_3D struct block_data_3D A,
int  n,
double  dtav
 

Normalising the time integral by the time interval.

This function calculates the integral summation over the specified time interval $ \Delta $ t = $ t_f - t_0 $ .

\[ \frac{1}{\Delta t}\int^{t_f}_{t_0} U dt \]

Averaged values are kept in a new data structure within cell center and thus do not affect the solution. Data is written out to .av files in write_averaged_solution() within cns_io.c.

Returns:
int
Author:
Andrew W Denman (a.denman@uq.edu.au)
Date:
26-Oct-04
Version:
1.0

int t_avg_normalise_3D struct block_data_3D A,
int  nav,
double  dtav
 

Normalising the time integral by the time interval.

This function normalises the integral summation over the specified time interval by that time interval $ \Delta $ t.

\[\frac{1}{\Delta t}\int^{t_f}_{t_0} U dt \]

Returns:
int
Author:
Andrew W Denman (a.denman@uq.edu.au)
Date:
26-Oct-04
Version:
1.0


Generated on Tue Oct 25 10:24:12 2005 for CFCFD by  doxygen 1.4.4