gnode Class Reference

#include <gnode.h>

List of all members.

Public Member Functions

void clear_dof ()
 function sets DOF number array to zero values
void constr (long dofcontr, XFILE *in)
double distance2 (long dim, const double *c)
long give_dof (long m)
long give_ndofn ()
 gnode (void)
void print (FILE *out)
void print_constr (long dofcontr, FILE *out)
void read (XFILE *in)
void save_dof (long m, long num)
long search_changed_dofs (gfunct *gf, double time, double prev_time, long lnso, long plnso)
 function searches for changed DOFs
void update_dofs (gfunct *gf, double time, long lnso)
 ~gnode (void)

Public Attributes

long ai
 auxiliary idicator
long * cn
 array containing code numbers
gtypel masentity
long * mnodes
 array of the master nodes (if the node is hanging node)
double * natcoord
 natural coordinates of the hanging node
long ndofn
 number of DOFs on node
long * tgf
 numbers (pointers) of general functions
double x
 coordinates of the node
double y
double z

Detailed Description

class gnode

this class contains general topological informations about node

JK

Definition at line 17 of file gnode.h.


Constructor & Destructor Documentation

gnode ( void   ) 

Definition at line 7 of file gnode.cpp.

References ai, cn, masentity, mnodes, natcoord, ndofn, noel, tgf, x, y, and z.

~gnode ( void   ) 

Definition at line 33 of file gnode.cpp.

References cn, mnodes, natcoord, and tgf.


Member Function Documentation

void clear_dof (  ) 

function sets DOF number array to zero values

The function clears array of DOF numbers.

Created by TKo, 7.6.2013

Definition at line 242 of file gnode.cpp.

References cn, memset(), and ndofn.

Referenced by gtopology::clear_intf_dofs(), and gtopology::update_active_dofs().

void constr ( long  dofcontr,
XFILE in 
)

function reads constraints from input file

Parameters:
dofcontr - type of dof control 0 = non-growing construction, 1 = dofs controlled by time function used in growing construction
in - input stream

TKr

Definition at line 127 of file gnode.cpp.

References cn, ndofn, print_err(), tgf, and xfscanf().

Referenced by transtop::read(), and mechtop::read().

double distance2 ( long  dim,
const double *  c 
)

function computes distance of first point (=this node) and second point defined by 'c'

Parameters:
dim - dimension of problem
c - cartesian coordinates of second point

created 8.6.2003, Ladislav Svoboda, termit@cml.fsv.cvut.cz

Definition at line 258 of file gnode.cpp.

References print_err(), x, y, and z.

Referenced by least_square::adjap_assembling(), and closest_node().

long give_dof ( long  m  ) 

function returns number of required degree of freedom

Parameters:
m - required component

JK

Definition at line 206 of file gnode.cpp.

References cn, ndofn, and print_err().

Referenced by gtopology::give_dof().

long give_ndofn (  ) 

function returns number of degrees of freedom of the node

JK

Definition at line 192 of file gnode.cpp.

References ndofn.

Referenced by gtopology::alloc_growstr(), gtopology::give_ndofn(), and gtopology::hang_nodes_check().

void print ( FILE *  out  ) 

functions prints basic informations

Parameters:
in - input stream

JK

Definition at line 96 of file gnode.cpp.

References masentity, mnodes, natcoord, ndofn, x, y, and z.

Referenced by transtop::print().

void print_constr ( long  dofcontr,
FILE *  out 
)

function prints constraints from input file

Parameters:
in - input stream

TKr

Definition at line 160 of file gnode.cpp.

References cn, ndofn, print_err(), and tgf.

Referenced by transtop::print().

void read ( XFILE in  ) 

functions reads basic informations

Parameters:
in - input stream

JK

Definition at line 54 of file gnode.cpp.

References cn, masentity, mnodes, natcoord, ndofn, x, xfscanf(), y, and z.

Referenced by main(), transtop::read(), and mechtop::read().

void save_dof ( long  m,
long  num 
)

function locates number of DOF to required position

Parameters:
m - number of component
num - number of DOF which will be saved

JK

Definition at line 225 of file gnode.cpp.

References cn, ndofn, and print_err().

Referenced by gtopology::save_dof().

long search_changed_dofs ( gfunct gf,
double  time,
double  prev_time,
long  lnso,
long  plnso 
)

function searches for changed DOFs

The function searches for changed DOFs.

Parameters:
gf - array of time functions
time - actual time
prev_time - previous time
lnso - actual state indicator of the node
plnso - state indicator of the node in the previous time

Created 6.2.2006, JK Updated 21.5.2013,TKo

Definition at line 313 of file gnode.cpp.

References cn, gfunct::getval_long(), ndofn, and tgf.

Referenced by gtopology::search_changed_dofs(), and gtopology::search_newdofs().

void update_dofs ( gfunct gf,
double  time,
long  lnso 
)

function changes DOFs

Parameters:
gf - array of time functions
time - actual time
lnso - state indicator of node according to state of adjacent elements

6.2.2006, JK Updated 21.5.2013, TKo

Definition at line 279 of file gnode.cpp.

References cn, gfunct::getval_long(), ndofn, and tgf.

Referenced by gtopology::update_active_dofs().


Member Data Documentation

long ai
long* cn

type of master entity it describes to which quantity (edge, surface, etc.) is the hanging node attached

Definition at line 54 of file gnode.h.

Referenced by gnode(), noddispl(), nodforce(), print(), read(), and mechtop::searching_hanging_nodes().

long* mnodes

array of the master nodes (if the node is hanging node)

Definition at line 49 of file gnode.h.

Referenced by mechtop::comreacnod(), mechtop::give_ndofn(), gnode(), gtopology::hang_nodes_check(), noddispl(), nodforce(), print(), read(), gtopology::searching_hanging_nodes(), and ~gnode().

double* natcoord

natural coordinates of the hanging node

Definition at line 51 of file gnode.h.

Referenced by gtopology::approx_weights(), gnode(), print(), read(), and ~gnode().

long ndofn
long* tgf
double x
double y
double z

The documentation for this class was generated from the following files:

Generated by  doxygen 1.6.2