Snoopy Version 6.0 (Albert)
mainloop.c File Reference
#include <stdlib.h>
#include "common.h"
#include "timestep.h"
#include "output/output.h"
#include "output/output_dump.h"
#include "interface.h"
#include "gfft.h"
#include "shear.h"
#include "transpose.h"
#include "symmetries.h"
#include "initflow.h"
#include "debug.h"
Include dependency graph for mainloop.c:

Functions

double newdt (struct Field fldi, double tremap)
void mainloop (double t_start, double t_end)

Variables

const double gammaRK [3] = {8.0 / 15.0 , 5.0 / 12.0 , 3.0 / 4.0}
const double xiRK [2] = {-17.0 / 60.0 , -5.0 / 12.0}
double forcing_last_time

Function Documentation

void mainloop ( double  t_start,
double  t_end 
)

Integrate in time the physical system from t_start to t_end. Outputs are done according to gvars.h

Parameters:
t_start,:initial time of the simulation (usually 0...)
t_end,:final time of the simulation (will stop precisely at that time).

Here is the call graph for this function:

Here is the caller graph for this function:

double newdt ( struct Field  fldi,
double  tremap 
)

generate a timestep (dt) as a function of the current flow configuration/velocity This routine is essentially an application of the CFL condition. it returns a timestep (dt)

Parameters:
tremap,:when using shear, the current remap time of the frame
fldi,:Field structure containing the flow status

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

const double gammaRK[3] = {8.0 / 15.0 , 5.0 / 12.0 , 3.0 / 4.0}
const double xiRK[2] = {-17.0 / 60.0 , -5.0 / 12.0}