gsurf Class Reference

#include <gsurf.h>

List of all members.

Public Member Functions

void alloc_cn (long nccnfn, long nccnln)
void check_normal (vector &x, vector &y, ivector &nod)
void give_first_node_numbers (long *fnn)
void give_last_node_numbers (long *lnn)
void give_mult_code_numbers (long fln, long *mcn)
void give_norvect (double *v)
 gsurf ()
void normal_vector (gnode *gnodes)
void print (FILE *out)
 ~gsurf ()

Public Attributes

long * adjel
 numbers of adjacent elements
long ** cnmult
long nae
 number of adjacent elements
long * ndofn
long * nlistfn
 list of nodes on surface (on the first side and second side)
long * nlistln
long nm
 node multiplicity
long nn
 vypis
double * nv
 normal vector
long re
 number of reference element
double threshold
 threshold

Detailed Description

class gsurf

this class defines general surface, which can be used in connection with general finite elements only topological informations are collected

the class is motivated by solution of hemivariational inequalities, in 3D problems, there is a contact between two parts of a body matching mesh is assumed and therefore two elements share

JK, 16.3.2009

Definition at line 24 of file gsurf.h.


Constructor & Destructor Documentation

gsurf ( void   ) 

Definition at line 6 of file gsurf.cpp.

References adjel, cnmult, ndofn, nlistfn, nlistln, nn, nv, re, and threshold.

~gsurf ( void   ) 

Definition at line 32 of file gsurf.cpp.

References adjel, cnmult, ndofn, nlistfn, nlistln, nn, and nv.


Member Function Documentation

void alloc_cn ( long  nccnfn,
long  nccnln 
)

function allocates array for code numbers of Lagrange multipliers

Parameters:
nccnfn - number of components in array cn of the first nodes
nccnln - number of components in array cn of the last nodes

JK, 6.1.2008

Definition at line 177 of file gsurf.cpp.

References cnmult, and nn.

void check_normal ( vector x,
vector y,
ivector nod 
)

function checks normal vector

JK, 21.10.2007

Definition at line 124 of file gsurf.cpp.

void give_first_node_numbers ( long *  fnn  ) 

function assembles node numbers of first nodes

Parameters:
fnn - array containing node numbers of first nodes

JK, 6.8.2008

Definition at line 211 of file gsurf.cpp.

References nlistfn, and nn.

void give_last_node_numbers ( long *  lnn  ) 

function assembles node numbers of last nodes

Parameters:
lnn - array containing node numbers of last nodes

JK, 6.8.2008

Definition at line 227 of file gsurf.cpp.

References nlistln, and nn.

void give_mult_code_numbers ( long  fln,
long *  mcn 
)

function assembles code numbers of Lagrange multipliers defined between selected nodes

Parameters:
fln - first or last node indicator fln=1 - first nodes are assumed fln=2 - last nodes are assumed
mcn - code numbers of selected multipliers

JK, 6.8.2008

Definition at line 248 of file gsurf.cpp.

void give_norvect ( double *  v  ) 

function returns normal vector

JK, 28.8.2007

Definition at line 112 of file gsurf.cpp.

References nv.

void normal_vector ( gnode gnodes  ) 

function computes normal vector

Parameters:
top - pointer to topology

JK, 9.7.2007

Definition at line 55 of file gsurf.cpp.

References nv, print_err(), and threshold.

void print ( FILE *  out  ) 

function prints

Parameters:
out - output stream

JK, 11.7.2007

Definition at line 82 of file gsurf.cpp.

References nlistfn, nlistln, nm, nn, and nv.


Member Data Documentation

long* adjel

numbers of adjacent elements

Definition at line 64 of file gsurf.h.

Referenced by gsurf(), and ~gsurf().

long** cnmult

array of code numbers of Lagrange Multipliers k=cnmult[i][j] - the j-th multiplier on the i-th node has number k

Definition at line 73 of file gsurf.h.

Referenced by alloc_cn(), gsurf(), and ~gsurf().

long nae

number of adjacent elements

Definition at line 59 of file gsurf.h.

long* ndofn

number of DOFs defined on nodes the same number of DOFs has to be defined on both side of the surface

Definition at line 56 of file gsurf.h.

Referenced by gsurf(), and ~gsurf().

long* nlistfn

list of nodes on surface (on the first side and second side)

Definition at line 69 of file gsurf.h.

Referenced by give_first_node_numbers(), gsurf(), print(), and ~gsurf().

long* nlistln

Definition at line 70 of file gsurf.h.

Referenced by give_last_node_numbers(), gsurf(), print(), and ~gsurf().

long nm

node multiplicity

Definition at line 67 of file gsurf.h.

Referenced by print().

long nn

vypis

number of nodes on surface

Definition at line 52 of file gsurf.h.

Referenced by alloc_cn(), give_first_node_numbers(), give_last_node_numbers(), gsurf(), print(), and ~gsurf().

double* nv

normal vector

Definition at line 76 of file gsurf.h.

Referenced by give_norvect(), gsurf(), normal_vector(), print(), and ~gsurf().

long re

number of reference element

Definition at line 62 of file gsurf.h.

Referenced by gsurf().

double threshold

threshold

Definition at line 79 of file gsurf.h.

Referenced by gsurf(), and normal_vector().


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

Generated by  doxygen 1.6.2