#include <gnode.h>
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 |
class gnode
this class contains general topological informations about node
JK
Definition at line 17 of file gnode.h.
gnode | ( | void | ) |
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
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'
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
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 | ) |
void print_constr | ( | long | dofcontr, | |
FILE * | out | |||
) |
function prints constraints from input file
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 | ) |
void save_dof | ( | long | m, | |
long | num | |||
) |
function locates number of DOF to required position
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.
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
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().
long ai |
auxiliary idicator
Definition at line 44 of file gnode.h.
Referenced by gmatrix::auxdatsparsesolver(), partop::boundary_nodes_on_master(), gtopology::comptop(), dpfeti::cornodedetection(), gnode(), partop::initiation(), and slesolv::solve_system().
long* cn |
array containing code numbers
Definition at line 40 of file gnode.h.
Referenced by clear_dof(), gtopology::cndistr(), gtopology::comptop(), constr(), floatsub::displ_extract(), gtopology::gencodnum(), general_epressure_varsup(), give_dof(), gtopology::give_node_code_numbers(), lplate::globcnnum_lpp(), gnode(), floatsub::ndof_subdom(), newton_raphson_coupl(), par_solve_nonlinear_nonstationary_problem_dform(), print_constr(), read(), restore_displ(), gtopology::saddlepoint_ordering(), save_dof(), partop::schur_ordering(), seqtop::schur_ordering(), gtopology::schur_ordering(), search_changed_dofs(), solve_linear_floating_subdomains_old(), update_dofs(), and ~gnode().
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 |
long ndofn |
number of DOFs on node
Definition at line 38 of file gnode.h.
Referenced by gmatrix::auxdatsparsesolver(), clear_dof(), gtopology::cndistr(), mechbclc::comp_sum(), mechbclc::comp_sum_pdreact(), mechbclc::comp_sum_react(), gtopology::comptop(), constr(), floatsub::displ_extract(), mechtop::gencodnumlagrmult(), give_dof(), give_ndofn(), gnode(), gmatrix::initiate(), lplate::lplate(), mechtop::mesh_check(), floatsub::number_of_lagr_mult(), aggregator::prepare_boss(), print(), print_constr(), outdiagm::print_displacements(), outdiagt::print_unknowns(), transtop::read(), mechtop::read(), read(), restore_displ(), save_dof(), search_changed_dofs(), mechtop::searching_hanging_nodes(), gtopology::searching_hanging_nodes(), update_dofs(), write_deflection(), write_displ(), write_nforces(), and write_vtk_unkn().
long* tgf |
numbers (pointers) of general functions
Definition at line 46 of file gnode.h.
Referenced by gtopology::alloc_growstr(), constr(), gnode(), transtop::mesh_check(), mechtop::mesh_check(), print_constr(), mechtop::save_node_inidispl(), search_changed_dofs(), update_dofs(), and ~gnode().
double x |
coordinates of the node
Definition at line 42 of file gnode.h.
Referenced by adjacnode(), gelement::centroid(), gtopology::comp_domain_sizes(), gtopology::comptop(), fixnodesel::compute_angle_of_vector_a_and_b(), fixnodesel::compute_area_of_triangle(), fixnodesel::compute_length_of_vector(), partop::control_numbers_of_vertices(), gedge::direction_vector(), distance2(), elemvalues(), elemvalues_puc(), findout_parentel_nod(), aggregator::gener_rbm_2(), mechtop::give_nodal_coord(), gtopology::give_node_coord1d(), gtopology::give_node_coord2d(), gtopology::give_node_coord2dxz(), gtopology::give_node_coord3d(), gnode(), gtopology::hang_nodes_check(), interpolelem(), isnodonlhsof3pcurve(), isnodonlhsofline(), couptop::mesh_check(), fixnodesel::order_selected_ring_nodes(), par_solve_nonlinear_nonstationary_problem_dform(), least_square::polynom_coefficients_inv_ae(), print(), print_contoures(), print_default_vtk(), outdriverm::print_default_vtk(), print_dx(), print_ex(), outdiagt::print_header(), print_VTK_nodedata(), read(), seldofinit(), fixnodesel::select_centers_of_surfaces(), fixnodesel::set_fictitious_subdomain(), least_square::sigma(), patch_averaging::sigma(), transfvalues_nod(), transtop::view_factors(), write_gid_nodes(), write_gid_nodest(), and write_nodes().
double y |
Definition at line 42 of file gnode.h.
Referenced by adjacnode(), gelement::centroid(), gtopology::comp_domain_sizes(), gtopology::comptop(), fixnodesel::compute_angle_of_vector_a_and_b(), fixnodesel::compute_area_of_triangle(), fixnodesel::compute_length_of_vector(), partop::control_numbers_of_vertices(), gedge::direction_vector(), distance2(), elemvalues(), elemvalues_puc(), findout_parentel_nod(), aggregator::gener_rbm_2(), mechtop::give_nodal_coord(), gtopology::give_node_coord2d(), gtopology::give_node_coord3d(), gnode(), gtopology::hang_nodes_check(), interpolelem(), isnodonlhsof3pcurve(), isnodonlhsofline(), couptop::mesh_check(), fixnodesel::order_selected_ring_nodes(), par_solve_nonlinear_nonstationary_problem_dform(), least_square::polynom_coefficients_inv_ae(), print(), print_contoures(), print_default_vtk(), outdriverm::print_default_vtk(), print_dx(), print_ex(), outdiagt::print_header(), print_VTK_nodedata(), read(), seldofinit(), fixnodesel::select_centers_of_surfaces(), fixnodesel::set_fictitious_subdomain(), least_square::sigma(), patch_averaging::sigma(), transfvalues_nod(), transtop::view_factors(), write_gid_nodes(), write_gid_nodest(), and write_nodes().
double z |
Definition at line 42 of file gnode.h.
Referenced by adjacnode(), gtopology::comp_domain_sizes(), gtopology::comptop(), fixnodesel::compute_angle_of_vector_a_and_b(), fixnodesel::compute_area_of_triangle(), fixnodesel::compute_length_of_vector(), partop::control_numbers_of_vertices(), gedge::direction_vector(), distance2(), elemvalues(), elemvalues_puc(), findout_parentel_nod(), mechtop::give_nodal_coord(), gtopology::give_node_coord2dxz(), gtopology::give_node_coord3d(), gnode(), gtopology::hang_nodes_check(), homogenization(), couptop::mesh_check(), fixnodesel::order_selected_ring_nodes(), least_square::polynom_coefficients_inv_ae(), print(), print_contoures(), print_default_vtk(), outdriverm::print_default_vtk(), print_dx(), print_ex(), outdiagt::print_header(), print_VTK_nodedata(), read(), seldofinit(), fixnodesel::select_centers_of_surfaces(), fixnodesel::set_fictitious_subdomain(), least_square::sigma(), patch_averaging::sigma(), write_gid_nodes(), write_gid_nodest(), and write_nodes().