1.2.2
CCC
 
CalcSimuFFT.cpp File Reference
#include "geoslib_old_f.h"
#include "Db/DbGrid.hpp"
#include "Db/Db.hpp"
#include "Model/Model.hpp"
#include "Simulation/ACalcSimulation.hpp"
#include "Simulation/SimuFFTParam.hpp"
#include "Simulation/CalcSimuFFT.hpp"
#include "Basic/Law.hpp"
#include "Basic/VectorHelper.hpp"
#include <math.h>

Macros

#define IND(ix, iy, iz)   ((iz) + _dims[2] * ((iy) + _dims[1] * (ix)))
 
#define U(ix, iy, iz)   (_u[IND(ix,iy,iz)])
 

Functions

int simfft (DbGrid *db, Model *model, SimuFFTParam &param, int nbsimu, int seed, int verbose, const NamingConvention &namconv)
 
VectorDouble getChangeSupport (DbGrid *db, Model *model, const SimuFFTParam &param, const VectorDouble &sigma, int seed, bool verbose)
 

Macro Definition Documentation

#define IND (   ix,
  iy,
  iz 
)    ((iz) + _dims[2] * ((iy) + _dims[1] * (ix)))
#define U (   ix,
  iy,
  iz 
)    (_u[IND(ix,iy,iz)])

Function Documentation

VectorDouble getChangeSupport ( DbGrid db,
Model model,
const SimuFFTParam param,
const VectorDouble sigma,
int  seed,
bool  verbose 
)

Calculate the change of support coefficients by FFT method in the lognormal case on a grid

Returns
r^2 coefficients for the different logarithmic variances
Parameters
[in]dbDb structure
[in]modelModel structure
[in]paramSimuFFTParam structure
[in]sigmaArray of logarithmic variances
[in]seedSeed for random number generator
[in]verboseVerbose flag
int simfft ( DbGrid db,
Model model,
SimuFFTParam param,
int  nbsimu,
int  seed,
int  verbose,
const NamingConvention namconv 
)

Perform the non-conditional simulation by FFT method on a grid

Returns
Error return code
Parameters
[in]dbDb structure
[in]modelModel structure
[in]paramSimuFFTParam structure
[in]nbsimuNumber of simulations
[in]seedValue of the seed
[in]verboseVerbose flag
[in]namconvNaming Convention