![]() |
Timothy
0.9
Tissue Modelling Framework
|
contains functions that compute potential gradient More...
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <float.h>
#include "global.h"
#include "inline.h"
Go to the source code of this file.
Functions | |
void | computeCCgradient (int p1, int p2, int mode) |
void | gradientTraverseSubtree (int p, struct bht_node *no) |
void | computeRemoteCellsPotentialGradient (int rp, struct bht_node *no) |
int | computePotentialGradient () |
contains functions that compute potential gradient
Definition in file gradient.c.
void computeCCgradient | ( | int | p1, |
int | p2, | ||
int | mode | ||
) |
This function computes potential gradient for two neighbour cells. mode=0 - computations for local cells mode=1 - computations for remote cells
Definition at line 40 of file gradient.c.
References cells, csize, cellData::density, densPotData::density, m, recvData, recvDensPotData, sdim, cellData::size, partData::size, cellData::v, densPotData::v, v, velocity, cellData::x, partData::x, doubleVector3d::x, cellData::y, partData::y, doubleVector3d::y, cellData::z, partData::z, and doubleVector3d::z.
int computePotentialGradient | ( | ) |
This function computes the potential gradient with the use of SPH method for all local cells.
Definition at line 183 of file gradient.c.
References bht_root, cells, bht_node::child, computeRemoteCellsPotentialGradient(), densPotExchangeInit(), densPotExchangeWait(), bht_node::father, globalMaxVel, globalMinVel, gradientTraverseSubtree(), h, leafs, lnc, statisticsData::maxsize, maxSpeedInUnits, statisticsData::maxvel, statisticsData::minsize, statisticsData::minvel, MPIrank, numImp, bht_node::partnum, s, secondsPerStep, cellData::size, statistics, statOutStep, step, tnc, velocity, x, doubleVector3d::x, doubleVector3d::y, and doubleVector3d::z.
void computeRemoteCellsPotentialGradient | ( | int | rp, |
struct bht_node * | no | ||
) |
This function traverse the tree (up-bottom) and computes potential gradient for remote cells.
Definition at line 151 of file gradient.c.
References bht_node::child, computeCCgradient(), h, bht_node::leaf, lnc, bht_node::partnum, recvData, s, tnc, and x.
void gradientTraverseSubtree | ( | int | p, |
struct bht_node * | no | ||
) |
This function traverses the subtree under given node looking for neighbour cells.
Definition at line 115 of file gradient.c.
References cells, bht_node::child, computeCCgradient(), h, bht_node::leaf, lnc, bht_node::partnum, s, tnc, and x.