#include <stdlib.h>
#include <math.h>
#include "constrain.h"
#include "rio.h"
Go to the source code of this file.
Data Structures | |
struct | sCCurveData |
Defines | |
#define | ZERO(v) ((fabs(v)<Tolerance)?1:0) |
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.
static void ConstShotBuild | ( | sConstrain * | c | ) | [static] |
Definition at line 292 of file constshot.c.
References sConstrain::data, sConstrain::elems, ElmConnect, ElmJacobian, ElmNumNodes, sCCurveData::ijac, sCCurveData::jac, and sConstrain::numNodes.
Referenced by ConstShotInit().
static void ConstShotFree | ( | sConstrain * | c | ) | [static] |
Definition at line 203 of file constshot.c.
References sConstrain::data, sConstrain::elems, ElmFree, sConstrain::nodes, sConstrain::numElems, and sConstrain::numNodes.
Referenced by ConstShotInit().
static int ConstShotGlobal | ( | sConstrain * | c, | |
sCoord * | p, | |||
void ** | elm, | |||
double * | l, | |||
double * | g | |||
) | [static] |
Definition at line 362 of file constshot.c.
References sConstrain::elems, ElmJacobian, and NDof.
Referenced by ConstShotInit().
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 sConstrain::elems, ElmJacobian, NDof, and TranslateShot().
Referenced by ConstShotInit().
static void ConstShotNew | ( | int | label, | |
int | num_nodes, | |||
int | num_elems, | |||
sConstrain ** | c, | |||
sConstrain ** | clst | |||
) | [static] |
Definition at line 180 of file constshot.c.
References ContNumConstrainRead, and SHOT.
Referenced by ConstShotInit().
static void ConstShotRead | ( | sConstrain * | c | ) | [static] |
Definition at line 232 of file constshot.c.
References sNode::coord, sNode::curve, sNode::dof, DSP_NO, sNode::dspIteration, sNode::dspTime, sConstrain::elems, ElmNew, ElmSetConnect, EvaluateTolerance(), FORCE, sNode::id, LINE2, nf, sConstrain::nodes, NONE, sConstrain::numElems, sConstrain::numNodes, sDof::psi, sNode::rezone, sDof::x, sCoord::x, sDof::y, sCoord::y, sDof::z, and sCoord::z.
Referenced by ConstShotInit().
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 sConstrain::elems, ElmJacobian, NDof, sCoord::x, sCoord::y, and sCoord::z.
Referenced by ConstShotInit().
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().
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 sNode::coord, Dist(), sConstrain::elems, ElmConnect, sConstrain::nodes, sConstrain::numElems, and Tolerance.
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 sNode::coord, sConstrain::nodes, sConstrain::numNodes, sCoord::x, sCoord::y, and sCoord::z.
Referenced by ConstShotLocal().
static double VecLen | ( | sCoord * | vec | ) | [static] |
Calcula o comprimento de um vetor.
Definition at line 108 of file constshot.c.
sCoord* shotVector = NULL |
Definition at line 26 of file constshot.c.
double Tolerance = 1.0e+10 [static] |
Definition at line 36 of file constshot.c.