![]() |
Timothy
0.9
Tissue Modelling Framework
|
contains functions that compute the potential More...
#include <stdio.h>
#include <stdlib.h>
#include <float.h>
#include <math.h>
#include "global.h"
#include "inline.h"
Go to the source code of this file.
Functions | |
double | computeCCPotential (int p1, int p2, int mode) |
void | potentialTraverseSubtree (int p, struct bht_node *no) |
void | computeRemoteCellsPotential (int rp, struct bht_node *no) |
void | computePotentialField () |
void | computePotential () |
contains functions that compute the potential
Definition in file potential.c.
double computeCCPotential | ( | int | p1, |
int | p2, | ||
int | mode | ||
) |
This function computes potential for two neighbour cells. mode=0 - computations for local cells mode=1 - computations for remote cells
Definition at line 40 of file potential.c.
References cells, csize, cellData::density, h, h2, h3, statisticsData::mindist, recvData, sdim, cellData::size, partData::size, statistics, x, cellData::x, partData::x, cellData::y, partData::y, cellData::young, partData::young, cellData::z, and partData::z.
void computePotential | ( | ) |
This is a driving routine for the potential computations.
Definition at line 287 of file potential.c.
References computePotentialField(), MPIrank, statOutStep, and step.
void computePotentialField | ( | ) |
This function computes potential for all local cells.
Definition at line 209 of file potential.c.
References bht_root, cells, cellsExchangeInit(), cellsExchangeWait(), bht_node::child, computeRemoteCellsPotential(), cellData::density, bht_node::father, h, leafs, lnc, statisticsData::maxsize, statisticsData::maxvel, statisticsData::mindist, statisticsData::minsize, statisticsData::minvel, nc, numImp, nx, bht_node::partnum, potentialTraverseSubtree(), s, statistics, tnc, cellData::v, and x.
void computeRemoteCellsPotential | ( | int | rp, |
struct bht_node * | no | ||
) |
This function traverse the tree (up-bottom) and computes potential for remote cells.
Definition at line 176 of file potential.c.
References cells, bht_node::child, computeCCPotential(), h, bht_node::leaf, lnc, bht_node::partnum, recvData, s, tnc, cellData::v, and x.
void potentialTraverseSubtree | ( | int | p, |
struct bht_node * | no | ||
) |
This function traverses the subtree under given node looking for neighbour cells.
Definition at line 146 of file potential.c.
References cells, bht_node::child, computeCCPotential(), h, bht_node::leaf, lnc, bht_node::partnum, s, tnc, cellData::v, and x.