#include <loadel.h>
Public Member Functions | |
void | edgeload () |
computes nodal values from edge load | |
loadel () | |
long | merge (loadel &lel) |
merges element load defined by lel | |
long | print (FILE *out, int ident) |
prints element load to the file | |
long | read (XFILE *in) |
reads element load from file | |
long | read_prep (XFILE *in, long lc, long *slc) |
reads element load from the preprocessor file | |
void | readedgeload (XFILE *in) |
reads element edge load from file | |
void | readsurfaceload (XFILE *in) |
reads element surface load from file | |
void | readvolumeload (XFILE *in) |
reads element volume load from file | |
void | set_load_type () |
sets load type depending on allocated arrays nodval{e|s|v} | |
void | surfaceload () |
computes nodal values from surface load | |
void | volumeload () |
computes nodal values from volume load | |
~loadel () | |
Public Attributes | |
long | eid |
the number of loaded element (element id) | |
long * | le |
indicators of loaded edges | |
long * | ls |
indicators of loaded surfaces | |
long | napfun |
the number of approximated functions on element | |
long | ndofe |
the number of DOFs on element | |
long | ned |
the number of edges | |
vector | nf |
components of load vector - nodal forces | |
long | nlc |
load case id | |
long | nned |
the number of nodes on one edge | |
long | nnsurf |
the number of nodes on one surface | |
long | nnve |
the number of elements of nodvale array | |
long | nnvs |
the number of elements of nodvals array | |
long | nnvv |
the number of elements of nodvalv array | |
double * | nodvale |
components of edge load | |
double * | nodvals |
components of surface load | |
double * | nodvalv |
components of volume load | |
long | nslc |
subload case id | |
long | nsurf |
the number of surfaces | |
elloadtype | tel |
the type of element load |
Class deals with loads defined on elements. It contains edge load, surface load and volume load.
Created by JK, Modified by Tomas Koudelka, 06.2009
Definition at line 16 of file loadel.h.
loadel | ( | ) |
~loadel | ( | ) |
void edgeload | ( | ) |
computes nodal values from edge load
Function computes nodal forces caused by edge load. Nodal forces are stored in vectors nf.
Created by JK,
Definition at line 306 of file loadel.cpp.
References allocv(), Asymlq, Asymlt, axisymmlq, axisymmlt, bar2d, Beam2d, beam2d, Beam3d, beam3d, axisymlq::edgeload(), axisymlt::edgeload(), eid, mechtop::give_elem_type(), mechtop::give_ndofe(), le, Mt, ndofe, nf, planeelemlq::nodeforces(), planeelemsubqt::nodeforces(), planeelemqt::nodeforces(), planeelemlt::nodeforces(), beamel3d::nodeforces(), beamel2d::nodeforces(), nodvale, Pelq, Pelt, Peqq, Peqt, Pesqt, planeelementlq, planeelementlt, planeelementqq, planeelementqt, planeelementsubqt, print_err(), and planeelemqq::res_nodeforces().
Referenced by read().
long merge | ( | loadel & | lel | ) |
merges element load defined by lel
The function merges load defined by the parameter le to the given object.
le | - merged element load |
0 | - on success | |
1 | - incompatible number of load components | |
2 | - incompatible type of load components |
Created by Tomas Koudelka 06.2009
Definition at line 593 of file loadel.cpp.
References for(), le, ls, memset(), ned, nnve, nnvs, nnvv, nodvale, nodvals, nodvalv, nsurf, and set_load_type().
Referenced by input_elem_load(), input_elem_loadedge(), input_elem_loadsurf(), and input_elem_loadvol().
long print | ( | FILE * | out, | |
int | ident = 0 | |||
) |
prints element load to the file
The function prints element load data to the opened text file given by the parameter out. It is used in the mechprep preprocessor.
out | - pointer to the opened text file | |
ident | - number of spaces printed on the beginning of each new line except of last |
0 | - on success | |
1 | - unknown type of load is required |
Created by Tomas Koudelka, 06.2009
Definition at line 512 of file loadel.cpp.
References le, ls, ned, nnve, nnvs, nnvv, nodvale, nodvals, nodvalv, nsurf, and tel.
Referenced by loadcase::print(), and wr_loadel().
long read | ( | XFILE * | in | ) |
reads element load from file
The function reads element load from the opened text file given by the parameter in.
in | - pointer to the opened text file |
0 | - on success |
Created by JK, Modified by Tomas Koudelka, 06.2009
Definition at line 86 of file loadel.cpp.
References edge, edge_surface, edge_surface_volume, edge_volume, edgeload(), eid, elloadtype_kwdset(), Mt, mechtop::ne, print_err(), readedgeload(), readsurfaceload(), readvolumeload(), surface, surface_volume, surfaceload(), tel, volume, volumeload(), and xfscanf().
Referenced by loadcase::read().
long read_prep | ( | XFILE * | in, | |
long | lc, | |||
long * | slc = NULL | |||
) |
reads element load from the preprocessor file
The function reads element load data from the opened text file given by the parameter in. It is used in the mechprep preprocessor.
in | - pointer to the opened text file | |
lc | - total number of load cases | |
slc | - pointer to array with number of subloadcases for individual load cases, defalut value is NULL |
0 | - on success | |
1 | - wrong load case id | |
2 | - unknown type of load is required | |
3 | - unknown load indicator is required |
Created by Tomas Koudelka
Definition at line 418 of file loadel.cpp.
References edge, elloadtype_kwdset(), le, ls, memset(), ned, nlc, nnve, nnvs, nnvv, nodvale, nodvals, nodvalv, nslc, nsurf, surface, tel, volume, and xfscanf().
Referenced by input_elem_load().
void readedgeload | ( | XFILE * | in | ) |
reads element edge load from file
The function reads element edge load from the opened text file given by the parameter in.
in | - pointer to the opened text file |
Created by JK,
Definition at line 188 of file loadel.cpp.
References eid, mechtop::give_napfun(), mechtop::give_ned(), mechtop::give_nned(), le, Mt, napfun, ned, nned, nnve, nodvale, and xfscanf().
Referenced by read().
void readsurfaceload | ( | XFILE * | in | ) |
reads element surface load from file
The function reads element surface load from the opened text file given by the parameter in.
in | - pointer to the input file |
Created by JK,
Definition at line 233 of file loadel.cpp.
References eid, mechtop::give_napfun(), mechtop::give_nnsurf(), mechtop::give_nsurf(), ls, Mt, napfun, nnsurf, nnvs, nodvals, nsurf, and xfscanf().
Referenced by read().
void readvolumeload | ( | XFILE * | in | ) |
reads element volume load from file
The function reads element volume load from the opened text file given by the parameter in.
in | - pointer to the opened text file |
Created by JK,
Definition at line 163 of file loadel.cpp.
References eid, mechtop::give_ndofe(), Mt, ndofe, nnvv, nodvalv, and xfscanf().
Referenced by read().
void set_load_type | ( | ) |
sets load type depending on allocated arrays nodval{e|s|v}
The function detects actual type of load depending on the allocated nodal load values.
Created by Tomas Koudelka, 07.2009
Definition at line 699 of file loadel.cpp.
References edge, edge_surface, edge_surface_volume, edge_volume, nodvale, nodvals, nodvalv, surface, surface_volume, tel, and volume.
Referenced by merge().
void surfaceload | ( | ) |
computes nodal values from surface load
Function computes nodal forces caused by surface load nodal forces are stored in vectors nf
Created by JK,
Definition at line 369 of file loadel.cpp.
References allocv(), dktelem::areaforces(), Dkt, dktel, eid, mechtop::give_elem_type(), mechtop::give_ndofe(), Lhex, linearhex, lineartet, ls, Ltet, Mt, ndofe, nf, quadhex::node_forces_surf(), linhex::node_forces_surf(), quadtet::node_forces_surf(), lintet::node_forces_surf(), nodvals, print_err(), Qhex, Qtet, quadrhex, and quadrtet.
Referenced by read().
void volumeload | ( | ) |
computes nodal values from volume load
The function computes nodal values of load caused by volume load. Volume load defined at nodes is integrated over element and nodal values are obtained and stored in the array nodval
Created by JK,
Definition at line 276 of file loadel.cpp.
References vector::a, matrix::a, allocm(), allocv(), destrm(), eid, mechtop::give_ndofe(), loadmat(), Mt, mxv(), ndofe, nf, and nodvalv.
Referenced by read().
long eid |
the number of loaded element (element id)
Definition at line 55 of file loadel.h.
Referenced by loadcase::assemble(), loadcase::compute_reactions(), edgeload(), loadel(), beamel2d::nodal_forces(), read(), readedgeload(), readsurfaceload(), readvolumeload(), surfaceload(), and volumeload().
long* le |
indicators of loaded edges
Definition at line 85 of file loadel.h.
Referenced by entityload::edge2loadel(), edgeload(), loadel(), merge(), print(), read_prep(), readedgeload(), and ~loadel().
long* ls |
indicators of loaded surfaces
Definition at line 87 of file loadel.h.
Referenced by loadel(), merge(), print(), read_prep(), readsurfaceload(), entityload::surface2loadel(), surfaceload(), and ~loadel().
long napfun |
the number of approximated functions on element
Definition at line 69 of file loadel.h.
Referenced by loadel(), readedgeload(), and readsurfaceload().
long ndofe |
the number of DOFs on element
Definition at line 57 of file loadel.h.
Referenced by edgeload(), loadel(), readvolumeload(), surfaceload(), and volumeload().
long ned |
the number of edges
Definition at line 61 of file loadel.h.
Referenced by entityload::edge2loadel(), loadel(), merge(), print(), read_prep(), and readedgeload().
components of load vector - nodal forces
Definition at line 83 of file loadel.h.
Referenced by loadcase::assemble(), loadcase::compute_reactions(), edgeload(), beamel2d::nodal_forces(), surfaceload(), and volumeload().
long nlc |
load case id
Definition at line 89 of file loadel.h.
Referenced by entityload::edge2loadel(), input_elem_load(), loadel(), read_prep(), entityload::surface2loadel(), and entityload::vol2loadel().
long nned |
the number of nodes on one edge
Definition at line 63 of file loadel.h.
Referenced by entityload::edge2loadel(), loadel(), and readedgeload().
long nnsurf |
the number of nodes on one surface
Definition at line 67 of file loadel.h.
Referenced by loadel(), readsurfaceload(), and entityload::surface2loadel().
long nnve |
the number of elements of nodvale array
Definition at line 71 of file loadel.h.
Referenced by entityload::edge2loadel(), loadel(), merge(), print(), read_prep(), and readedgeload().
long nnvs |
the number of elements of nodvals array
Definition at line 73 of file loadel.h.
Referenced by loadel(), merge(), print(), read_prep(), readsurfaceload(), and entityload::surface2loadel().
long nnvv |
the number of elements of nodvalv array
Definition at line 75 of file loadel.h.
Referenced by loadel(), merge(), print(), read_prep(), readvolumeload(), and entityload::vol2loadel().
double* nodvale |
components of edge load
Definition at line 77 of file loadel.h.
Referenced by entityload::edge2loadel(), edgeload(), loadel(), merge(), print(), read_prep(), readedgeload(), set_load_type(), and ~loadel().
double* nodvals |
components of surface load
Definition at line 79 of file loadel.h.
Referenced by loadel(), merge(), print(), read_prep(), readsurfaceload(), set_load_type(), entityload::surface2loadel(), surfaceload(), and ~loadel().
double* nodvalv |
components of volume load
Definition at line 81 of file loadel.h.
Referenced by loadel(), merge(), print(), read_prep(), readvolumeload(), set_load_type(), entityload::vol2loadel(), volumeload(), and ~loadel().
long nslc |
subload case id
Definition at line 91 of file loadel.h.
Referenced by input_elem_load(), loadel(), and read_prep().
long nsurf |
the number of surfaces
Definition at line 65 of file loadel.h.
Referenced by loadel(), merge(), print(), read_prep(), readsurfaceload(), and entityload::surface2loadel().
the type of element load
Definition at line 59 of file loadel.h.
Referenced by entityload::edge2loadel(), input_elem_load(), loadel(), print(), read(), read_prep(), set_load_type(), entityload::surface2loadel(), and entityload::vol2loadel().