constshot.c File Reference

#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  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

sCoordshotVector = NULL
static double Tolerance = 1.0e+10


Define Documentation

#define ZERO (  )     ((fabs(v)<Tolerance)?1:0)

Definition at line 42 of file constshot.c.


Function Documentation

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().

Here is the caller graph for this function:

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().

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 sConstrain::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 sConstrain::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  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().

Here is the caller graph for this function:

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().

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 sConstrain::elems, ElmJacobian, NDof, sCoord::x, sCoord::y, and sCoord::z.

Referenced by ConstShotInit().

Here is the caller graph for this function:

static void CrossProd ( sCoord in0,
sCoord in1,
sCoord out 
) [static]

Calcula o produto vetorial entre dois vetores.

Parameters:
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.

References sCoord::x, sCoord::y, and sCoord::z.

static void DiffVec ( sCoord in0,
sCoord in1,
sCoord out 
) [static]

Calcula a diferença entre dois vetores.

Parameters:
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.

References sCoord::x, sCoord::y, and sCoord::z.

static double Dist ( sCoord in0,
sCoord in1 
) [static]

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 sNode::coord, Dist(), sConstrain::elems, ElmConnect, sConstrain::nodes, sConstrain::numElems, and Tolerance.

Here is the call graph for this function:

static double ProdEscalar ( sCoord in0,
sCoord in1 
) [static]

Calcula o produto escalar entre dois vetores.

Parameters:
in0 - vetor 1.
in1 - vetor 2. retorna valor do produto.

Definition at line 84 of file constshot.c.

References sCoord::x, sCoord::y, and sCoord::z.

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().

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.

References sCoord::x, sCoord::y, and sCoord::z.


Variable Documentation

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.


Generated on Tue Oct 23 11:23:40 2007 for Relax by  doxygen 1.5.3