#include <stdlib.h>#include <math.h>#include "constrain.h"#include "rio.h"Include dependency graph for constshot.c:

Go to the source code of this file.
Data Structures | |
| struct | _curvedata |
Defines | |
| #define | ZERO(v) ((fabs(v)<Tolerance)?1:0) |
Typedefs | |
| typedef _curvedata | sCCurveData |
Functions | |
| static void | DiffVec (sCoord *in0, sCoord *in1, sCoord *out) |
| static double | ProdEscalar (sCoord *in0, sCoord *in1) |
| static void | CrossProd (sCoord *in0, sCoord *in1, sCoord *out) |
| static double | VecLen (sCoord *vec) |
| static double | Dist (sCoord *in0, sCoord *in1) |
| static void | EvaluateTolerance (sConstrain *c) |
| static void | TranslateShot (sConstrain *c, sCoord *p) |
| static void | ConstShotNew (int, int, int, sConstrain **, sConstrain **) |
| static void | ConstShotFree (sConstrain *) |
| static void | ConstShotRead (sConstrain *) |
| static void | ConstShotBuild (sConstrain *) |
| static int | ConstShotLocal (sConstrain *c, sCoord *p, void **elm, double *g, double *l) |
| static int | ConstShotGlobal (sConstrain *c, sCoord *p, void **elm, double *l, double *g) |
| static int | ConstShotSlide (sConstrain *c, sCoord *p, void **elm, sCoord *d, double *l, double *g, sCoord *pl) |
| void | ConstShotInit (void) |
Variables | |
| sCoord * | shotVector = NULL |
| static double | Tolerance = 1.0e+10 |
| #define ZERO | ( | v | ) | ((fabs(v)<Tolerance)?1:0) |
Definition at line 42 of file constshot.c.
| typedef struct _curvedata sCCurveData |
| static void ConstShotBuild | ( | sConstrain * | ) | [static] |
Definition at line 292 of file constshot.c.
References _constrain::data, _constrain::elems, ElmConnect, ElmJacobian, ElmNumNodes, _curvedata::ijac, and _constrain::numNodes.
Referenced by ConstShotInit().
Here is the caller graph for this function:

| static void ConstShotFree | ( | sConstrain * | ) | [static] |
Definition at line 203 of file constshot.c.
References _constrain::data, _constrain::elems, ElmFree, _constrain::nodes, _constrain::numElems, and _constrain::numNodes.
Referenced by ConstShotInit().
Here is the caller graph for this function:

| static int ConstShotGlobal | ( | sConstrain * | c, | |
| sCoord * | p, | |||
| void ** | elm, | |||
| double * | l, | |||
| double * | g | |||
| ) | [static] |
Definition at line 362 of file constshot.c.
References _constrain::elems, ElmJacobian, and NDof.
Referenced by ConstShotInit().
Here is the caller graph for this function:

| void ConstShotInit | ( | void | ) |
| static int ConstShotLocal | ( | sConstrain * | c, | |
| sCoord * | p, | |||
| void ** | elm, | |||
| double * | g, | |||
| double * | l | |||
| ) | [static] |
Definition at line 334 of file constshot.c.
References _constrain::elems, ElmJacobian, NDof, and TranslateShot().
Referenced by ConstShotInit().
Here is the call graph for this function:

Here is the caller graph for this function:

| static void ConstShotNew | ( | int | , | |
| int | , | |||
| int | , | |||
| sConstrain ** | , | |||
| sConstrain ** | ||||
| ) | [static] |
Definition at line 180 of file constshot.c.
References ContNumConstrainRead, and SHOT.
Referenced by ConstShotInit().
Here is the caller graph for this function:

| static void ConstShotRead | ( | sConstrain * | ) | [static] |
Definition at line 232 of file constshot.c.
References _node::coord, _node::curve, _node::dof, DSP_NO, _node::dspIteration, _node::dspTime, _constrain::elems, ElmNew, ElmSetConnect, EvaluateTolerance(), FORCE, _node::id, LINE2, nf, _constrain::nodes, NONE, _constrain::numElems, _constrain::numNodes, _dof::psi, _node::rezone, shotVector, _dof::x, _coord::x, _dof::y, _coord::y, _dof::z, and _coord::z.
Referenced by ConstShotInit().
Here is the call graph for this function:

Here is the caller graph for this function:

| static int ConstShotSlide | ( | sConstrain * | c, | |
| sCoord * | p, | |||
| void ** | elm, | |||
| sCoord * | d, | |||
| double * | l, | |||
| double * | g, | |||
| sCoord * | pl | |||
| ) | [static] |
Definition at line 388 of file constshot.c.
References _constrain::elems, ElmJacobian, NDof, _coord::x, _coord::y, and _coord::z.
Referenced by ConstShotInit().
Here is the caller graph for this function:

Calcula o produto vetorial entre dois vetores.
| in0 | - vetor 1. | |
| in1 | - vetor 2. | |
| out | - retorna o produto vetorial entre o vetor 1 e o vetor 2. |
Definition at line 98 of file constshot.c.
Calcula a diferença entre dois vetores.
| in0 | - vetor 1. | |
| in1 | - vetor 2. | |
| out | - retorna a diferença entre o vetor 1 e o vetor 2 (in0 - in1). |
Definition at line 71 of file constshot.c.
Calcula a distancia entre dois pontos.
Definition at line 116 of file constshot.c.
References DiffVec(), and VecLen().
Here is the call graph for this function:

| static void EvaluateTolerance | ( | sConstrain * | c | ) | [static] |
Calcula a tolerância usada pelas funções de check geométrico deste pacote em função de cada curva lida.
Definition at line 129 of file constshot.c.
References _node::coord, Dist(), _constrain::elems, ElmConnect, _constrain::nodes, _constrain::numElems, and Tolerance.
Here is the call graph for this function:

Calcula o produto escalar entre dois vetores.
| in0 | - vetor 1. | |
| in1 | - vetor 2. retorna valor do produto. |
Definition at line 84 of file constshot.c.
| static void TranslateShot | ( | sConstrain * | c, | |
| sCoord * | p | |||
| ) | [static] |
Definition at line 150 of file constshot.c.
References _node::coord, _constrain::nodes, _constrain::numNodes, shotVector, _coord::x, _coord::y, and _coord::z.
Referenced by ConstShotLocal().
Here is the caller graph for this function:

| static double VecLen | ( | sCoord * | vec | ) | [static] |
Calcula o comprimento de um vetor.
Definition at line 108 of file constshot.c.
| sCoord* shotVector = NULL |
double Tolerance = 1.0e+10 [static] |
Definition at line 36 of file constshot.c.
1.5.1