#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <math.h>
#include <time.h>
#include "load.h"
#include "elm.h"
#include "node.h"
#include "nfi.h"
#include "rio.h"
#include "damp.h"
Go to the source code of this file.
Data Structures | |
struct | sAutoGlobal |
struct | sAutoLocal |
struct | sRayleigh |
Defines | |
#define | PI 3.141592654 |
Functions | |
static void | AutoGlobalNew (sDamp **) |
static void | AutoGlobalFree (sDamp *) |
static void | AutoGlobalRead (sDamp *) |
static void | AutoGlobalCalc (sDamp *, int, double, double *, double *, double *, double *) |
static void | AutoLocalNew (sDamp **) |
static void | AutoLocalFree (sDamp *) |
static void | AutoLocalRead (sDamp *) |
static void | AutoLocalCalc (sDamp *, int, double, double *, double *, double *, double *) |
static void | RayleighNew (sDamp **) |
static void | RayleighFree (sDamp *) |
static void | RayleighRead (sDamp *) |
static void | RayleighCalc (sDamp *, int, double, double *, double *, double *, double *) |
void | AutoGlobalInit (void) |
void | AutoLocalInit (void) |
void | RayleighInit (void) |
void | DampingInit (void) |
Variables | |
sDampClass | DampClass [NumDampTypes] |
sDamp * | DampObj = 0L |
static void AutoGlobalCalc | ( | sDamp * | damp, | |
int | iteration, | |||
double | dtime, | |||
double * | MVector, | |||
double * | VVector, | |||
double * | alpha, | |||
double * | CinEng | |||
) | [static] |
Computes the damp coefficente. This function computes the damp coefficente and the cinetic energy for the system by the global Auto-Damping algorithm.
Definition at line 156 of file damp.c.
References sAutoGlobal::admul, sDamp::data, DISPLACEMENT, sNode::dof, sAutoGlobal::frac, sAutoGlobal::freq, NDof, NodeVector, NONE, NumNodes, PI, and sDof::z.
Referenced by AutoGlobalInit().
static void AutoGlobalFree | ( | sDamp * | damp | ) | [static] |
Definition at line 110 of file damp.c.
References sDamp::data.
Referenced by AutoGlobalInit().
void AutoGlobalInit | ( | void | ) |
Definition at line 488 of file damp.c.
References AUTO_GLOBAL, AutoGlobalCalc(), AutoGlobalFree(), AutoGlobalNew(), AutoGlobalRead(), sDampClass::calc, sDampClass::free, sDampClass::new, and sDampClass::read.
Referenced by DampingInit().
static void AutoGlobalNew | ( | sDamp ** | damp | ) | [static] |
Definition at line 82 of file damp.c.
References sAutoGlobal::adfac, sAutoGlobal::admul, AUTO_GLOBAL, sAutoGlobal::frac, and sAutoGlobal::freq.
Referenced by AutoGlobalInit().
static void AutoGlobalRead | ( | sDamp * | damp | ) | [static] |
Definition at line 130 of file damp.c.
References sAutoGlobal::adfac, sAutoGlobal::admul, sDamp::data, sAutoGlobal::frac, sAutoGlobal::freq, and nf.
Referenced by AutoGlobalInit().
static void AutoLocalCalc | ( | sDamp * | damp, | |
int | iteration, | |||
double | dtime, | |||
double * | MVector, | |||
double * | VVector, | |||
double * | alpha, | |||
double * | CinEng | |||
) | [static] |
Computes the damp coefficente. This function computes the damp coefficente and the cinetic energy for the system by the local Auto-Damping algorithm.
Definition at line 315 of file damp.c.
References sAutoLocal::cadl, sDamp::data, DISPLACEMENT, sNode::dof, NDof, NodeVector, NONE, NumNodes, and sDof::z.
Referenced by AutoLocalInit().
static void AutoLocalFree | ( | sDamp * | damp | ) | [static] |
Definition at line 272 of file damp.c.
References sDamp::data.
Referenced by AutoLocalInit().
void AutoLocalInit | ( | void | ) |
Definition at line 503 of file damp.c.
References AUTO_LOCAL, AutoLocalCalc(), AutoLocalFree(), AutoLocalNew(), AutoLocalRead(), sDampClass::calc, sDampClass::free, sDampClass::new, and sDampClass::read.
Referenced by DampingInit().
static void AutoLocalNew | ( | sDamp ** | damp | ) | [static] |
Definition at line 247 of file damp.c.
References AUTO_LOCAL, and sAutoLocal::cadl.
Referenced by AutoLocalInit().
static void AutoLocalRead | ( | sDamp * | damp | ) | [static] |
Definition at line 292 of file damp.c.
References sAutoLocal::cadl, sDamp::data, and nf.
Referenced by AutoLocalInit().
void DampingInit | ( | void | ) |
Definition at line 538 of file damp.c.
Referenced by NfiInterpFile().
static void RayleighCalc | ( | sDamp * | damp, | |
int | iteration, | |||
double | dtime, | |||
double * | MVector, | |||
double * | VVector, | |||
double * | alpha, | |||
double * | CinEng | |||
) | [static] |
Computes the damp coefficente. This function computes the damp coefficente and the cinetic energy for the system by the Rayleigh algorithm.
Definition at line 467 of file damp.c.
References sDamp::data.
Referenced by RayleighInit().
static void RayleighFree | ( | sDamp * | damp | ) | [static] |
Definition at line 421 of file damp.c.
References sDamp::data.
Referenced by RayleighInit().
void RayleighInit | ( | void | ) |
Definition at line 518 of file damp.c.
References sDampClass::calc, sDampClass::free, sDampClass::new, RAYLEIGH, RayleighCalc(), RayleighFree(), RayleighNew(), RayleighRead(), and sDampClass::read.
Referenced by DampingInit().
static void RayleighNew | ( | sDamp ** | damp | ) | [static] |
Definition at line 393 of file damp.c.
References sRayleigh::f1, sRayleigh::f2, sRayleigh::frac, sRayleigh::freq, and RAYLEIGH.
Referenced by RayleighInit().
static void RayleighRead | ( | sDamp * | damp | ) | [static] |
Definition at line 441 of file damp.c.
References sDamp::data, sRayleigh::f1, sRayleigh::f2, sRayleigh::frac, sRayleigh::freq, and nf.
Referenced by RayleighInit().
sDampClass DampClass[NumDampTypes] |
Damp Object
Definition at line 40 of file damp.c.
Referenced by _NfiReadDamping(), _NfiReadDampingGlobalParameter(), _NfiReadDampingLocalParameter(), _NfiReadDampingRayleighParameter(), DRSolver(), and HYBRIDSolver().