#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cstddef>
#include <iostream>
#include <list>
#include "simulation.h"
#include "beziermesh.h"
#include "boundarymesh.h"
#include "cell.h"
#include "celltuple.h"
#include "cleaner.h"
#include "datastore.h"
#include "epswrite.h"
#include "globals.h"
#include "meshio.h"
#include "spline.h"
#include "timehelp.h"
#include "util.h"
Include dependency graph for simulation.C:
Go to the source code of this file.
Functions | |
static Point2D | compute_displacement (const LinearData &data, int fixed, int v1x, int v1y, int v0x, int v0y, double dt) |
Compute the displacement given velocities. |
Definition in file simulation.C.
static Point2D compute_displacement | ( | const LinearData & | data, | |
int | fixed, | |||
int | v1x, | |||
int | v1y, | |||
int | v0x, | |||
int | v0y, | |||
double | dt | |||
) | [static] |
Compute the displacement given velocities.
Used in Simulation::move. No need for polluting the Simulation namespace; this function is only used in this file. Moves from time 0 to time 1, assuming v0 at time 0 and v1 at time 1 and linear in between
v1x | The index in the LinearData of the velocity in the x direction for time 1 | |
v1y | The index in the LinearData of the velocity in the y direction for time 1 | |
v0x | The index in the LinearData of the velocity in the x direction for time 0 | |
v0y | The index in the LinearData of the velocity in the y direction for time 0 |
Definition at line 159 of file simulation.C.
References Point2D::coords, and LinearData::fields.
Referenced by Simulation::move_().