#include "difcalc.h"
#include "basefun.h"
#include "ordering.h"
#include <math.h>
#include <stdlib.h>
Go to the source code of this file.
Functions | |
void | derivatives_1d (vector &dx, double &jac, vector &x, double xi) |
void | derivatives_2d (vector &dx, vector &dy, double &jac, vector &x, vector &y, double xi, double eta) |
void | derivatives_3d (vector &dx, vector &dy, vector &dz, double &jac, vector &x, vector &y, vector &z, double xi, double eta, double zeta) |
void | jac1d2d (double &jac, vector &x, vector &y, double xi) |
void | jac1d3d (double &jac, vector &x, vector &y, vector &z, double xi) |
void | jac1d_2d (double &jac, vector &x, vector &y, double xi, long edid) |
void | jac2d3d (double &jac, vector &x, vector &y, vector &z, double xi, double eta) |
void | jac2d_3d (double &jac, vector &x, vector &y, vector &z, double xi, double eta, long sid) |
void | jac_1d (double &jac, vector &x, double xi) |
void | jac_2d (double &jac, vector &x, vector &y, double xi, double eta) |
void | jac_3d (double &jac, vector &x, vector &y, vector &z, double xi, double eta, double zeta) |
functions evaluates derivates of the function with variable xi with respect to x
dx | - array containing derivatives with respect to x | |
jac | - Jacobian | |
x | - array containing node coordinates | |
xi | - natural coordinate |
1.4.2002
Definition at line 18 of file difcalc.cpp.
References dx_bf_lin_1d(), dx_bf_quad_1d(), and vector::n.
Referenced by barelq3d::geom_matrix(), barelq2d::geom_matrix(), barel2d::geom_matrix(), quadbartax::grad_matrix(), quadbart::grad_matrix(), linbartax::grad_matrix(), and linbart::grad_matrix().
void derivatives_2d | ( | vector & | dx, | |
vector & | dy, | |||
double & | jac, | |||
vector & | x, | |||
vector & | y, | |||
double | xi, | |||
double | eta | |||
) |
functions evaluates derivates of the function with variables xi and eta with respect to x and y
dx,dy | - arrays containing derivatives with respect to x and y | |
jac | - Jacobian | |
x,y | - array containing node coordinates | |
xi,eta | - natural coordinates |
24.6.2001
Definition at line 106 of file difcalc.cpp.
References dx_bf_lin_3_2d(), dx_bf_lin_4_2d(), dx_bf_quad_3_2d(), dx_bf_quad_4_2d(), dy_bf_lin_3_2d(), dy_bf_lin_4_2d(), dy_bf_quad_3_2d(), dy_bf_quad_4_2d(), and vector::n.
Referenced by planeelemrotlq::addgeommat(), planeelemlq::bvectors(), planeelemsubqt::geom_matrix(), planeelemrotlq::geom_matrix(), planeelemqt::geom_matrix(), planeelemqq::geom_matrix(), planeelemlq::geom_matrix(), axisymqq::geom_matrix(), axisymlq::geom_matrix(), planeelemsubqt::geom_matrix_block(), planeelemrotlq::geom_matrix_block(), planeelemqt::geom_matrix_block(), planeelemlq::geom_matrix_block(), axisymqq::geom_matrix_block(), axisymlq::geom_matrix_block(), quadquadrilattax::grad_matrix(), quadquadrilatt::grad_matrix(), quadlineart::grad_matrix(), and quadlinaxisym::grad_matrix().
void derivatives_3d | ( | vector & | dx, | |
vector & | dy, | |||
vector & | dz, | |||
double & | jac, | |||
vector & | x, | |||
vector & | y, | |||
vector & | z, | |||
double | xi, | |||
double | eta, | |||
double | zeta | |||
) |
function evaluates derivatives of the function with variables xi, eta and zeta with respect to x, y and z
dx,dy,dz | - arrays containing derivatives with respect to x, y and z | |
jac | - Jacobian | |
x,y,z | - arrays containing node coordinates | |
xi,eta,zeta | - natural coordinates |
24.6.2001
Definition at line 232 of file difcalc.cpp.
References dx_bf_lin_hex_3d(), dx_bf_lin_tet(), dx_bf_lin_wed_3d(), dx_bf_quad_hex_3d(), dx_bf_quad_tet(), dx_bf_quad_wed_3d(), dy_bf_lin_hex_3d(), dy_bf_lin_tet(), dy_bf_lin_wed_3d(), dy_bf_quad_hex_3d(), dy_bf_quad_tet(), dy_bf_quad_wed_3d(), dz_bf_lin_hex_3d(), dz_bf_lin_tet(), dz_bf_lin_wed_3d(), dz_bf_quad_hex_3d(), dz_bf_quad_tet(), dz_bf_quad_wed_3d(), and vector::n.
Referenced by linhexrot::bvectors(), linhex::bvectors(), quadwedge::geom_matrix(), quadtet::geom_matrix(), quadhex::geom_matrix(), linwedge::geom_matrix(), lintet::geom_matrix(), linhexrot::geom_matrix(), linhex::geom_matrix(), linhex::geom_matrix_block(), linhexrot::geom_matrix_shear(), quadhext::grad_matrix(), and linhext::grad_matrix().
function computes Jacobian of mapping from 2D curve to <-1;1> segment
jac | - Jacobian | |
x,y | - node coordinates | |
xi | - natural coordinate |
1.4.2002
Definition at line 406 of file difcalc.cpp.
References dx_bf_lin_1d(), dx_bf_quad_1d(), and vector::n.
Referenced by jac1d_2d().
function computes Jacobian of mapping from 3D curve to <-1;1> segment
jac | - Jacobian | |
x,y,z | - node coordinates | |
xi | - natural coordinate |
1.4.2002
Definition at line 449 of file difcalc.cpp.
References dx_bf_lin_1d(), dx_bf_quad_1d(), and vector::n.
function computes jacobian of mapping from 2D curve to line <-1;1> curve is edge on 2D finite element
jac | - jacobian | |
x,y | - arrays containing node coordinates | |
xi | - natural coordinate | |
edid | - edge id |
1.4.2002
Definition at line 559 of file difcalc.cpp.
References allocv(), destrv(), jac1d2d(), and vector::n.
Referenced by trlineart::edge_integral(), trlinaxisym::edge_integral(), quadquadrilattax::edge_integral(), quadquadrilatt::edge_integral(), quadlineart::edge_integral(), quadlinaxisym::edge_integral(), planeelemlq::edge_integral(), axisymlt::edge_integral(), axisymlq::edge_integral(), planeelemsubqt::nodeforces(), planeelemqt::nodeforces(), planeelemqq::nodeforces(), planeelemlt::nodeforces(), planeelemlq::nodeforces(), axisymqq::nodeforces(), and axisymlq::nodeforces().
function computes Jacobian of mapping from surface in 3D to unit square or triangle
jac | - jacobian | |
x,y,z | - arrays containing node coordinates | |
xi,eta | - natural coordinates |
1.4.2002
Definition at line 493 of file difcalc.cpp.
References dx_bf_lin_3_2d(), dx_bf_lin_4_2d(), dx_bf_quad_3_2d(), dx_bf_quad_4_2d(), dy_bf_lin_3_2d(), dy_bf_lin_4_2d(), dy_bf_quad_3_2d(), dy_bf_quad_4_2d(), and vector::n.
Referenced by jac2d_3d(), quadhex::node_forces_surf(), linhexrot::node_forces_surf_old(), and linhex::node_forces_surf_old().
function computes jacobian of mapping from surface to unit square or triangle surface is surface of 3D finite element
jac | - jacobian | |
x,y,z | - node coordinates | |
xi,eta | - natural coordinates | |
sid | - surface id |
Definition at line 650 of file difcalc.cpp.
References ivector::a, allocv(), destrv(), jac2d3d(), vector::n, and quadtetrahedral_surfnod().
Referenced by quadtet::node_forces_surf(), lintetrot::node_forces_surf(), lintet::node_forces_surf(), linhexrot::node_forces_surf(), linhex::node_forces_surf(), lintetrot::node_forces_surf_old(), lintet::node_forces_surf_old(), quadhext::surface_integral(), lintett::surface_integral(), and linhext::surface_integral().
void jac_1d | ( | double & | jac, | |
vector & | x, | |||
double | xi | |||
) |
functions evaluates jacobian
jac | - Jacobian | |
x | - array containing node coordinates | |
xi | - natural coordinate |
1.4.2002
Definition at line 63 of file difcalc.cpp.
References dx_bf_lin_1d(), dx_bf_quad_1d(), and vector::n.
Referenced by quadbartax::capacity_matrix(), quadbart::capacity_matrix(), linbartax::capacity_matrix(), linbart::capacity_matrix(), beamgen3d::load_matrix(), beamel3d::load_matrix(), quadbartax::quantity_source_vector(), quadbart::quantity_source_vector(), linbartax::quantity_source_vector(), linbart::quantity_source_vector(), quadbartax::total_integral(), quadbart::total_integral(), linbartax::total_integral(), linbart::total_integral(), and linbart::total_integral_ip().
functions evaluates Jacobian for 2D problems
jac | - Jacobian | |
x,y | - array containing node coordinates | |
xi,eta | - natural coordinates |
9.7.2001
Definition at line 171 of file difcalc.cpp.
References dx_bf_lin_3_2d(), dx_bf_lin_4_2d(), dx_bf_quad_3_2d(), dx_bf_quad_4_2d(), dy_bf_lin_3_2d(), dy_bf_lin_4_2d(), dy_bf_quad_3_2d(), dy_bf_quad_4_2d(), and vector::n.
Referenced by quadquadrilattax::capacity_matrix(), quadquadrilatt::capacity_matrix(), quadlineart::capacity_matrix(), quadlinaxisym::capacity_matrix(), quadlineart::compute_error(), planeelemqt::compute_error(), planeelemlq::compute_error(), cctelem::elem_integration(), ArgyrisTriangle::elem_integration(), planeelemrotlt::ipvolume(), planeelemrotlq::ipvolume(), planeelemqt::ipvolume(), planeelemqq::ipvolume(), planeelemlt::ipvolume(), planeelemlq::ipvolume(), planeelemrotlq::load_matrix(), planeelemqt::load_matrix(), planeelemqq::load_matrix(), planeelemlq::load_matrix(), axisymqq::load_matrix(), axisymlq::load_matrix(), planeelemrotlq::mass_matrix(), planeelemqt::mass_matrix(), planeelemqq::mass_matrix(), planeelemlq::mass_matrix(), axisymqq::mass_matrix(), axisymlq::mass_matrix(), planeelemqt::ntdbr_vector(), planeelemlq::ntdbr_vector(), planeelemqt::ntn_matrix(), planeelemqq::ntn_matrix(), planeelemlq::ntn_matrix(), quadquadrilattax::quantity_source_vector(), quadquadrilatt::quantity_source_vector(), quadlineart::quantity_source_vector(), quadlinaxisym::quantity_source_vector(), quadquadrilattax::total_integral(), quadquadrilatt::total_integral(), quadlineart::total_integral(), and quadlinaxisym::total_integral().
void jac_3d | ( | double & | jac, | |
vector & | x, | |||
vector & | y, | |||
vector & | z, | |||
double | xi, | |||
double | eta, | |||
double | zeta | |||
) |
function evaluates Jacobian for 3D problems
jac | - Jacobian | |
x,y,z | - arrays containing node coordinates | |
xi,eta,zeta | - natural coordinates |
24.6.2001
Definition at line 323 of file difcalc.cpp.
References dx_bf_lin_hex_3d(), dx_bf_lin_tet(), dx_bf_lin_wed_3d(), dx_bf_quad_hex_3d(), dx_bf_quad_tet(), dx_bf_quad_wed_3d(), dy_bf_lin_hex_3d(), dy_bf_lin_tet(), dy_bf_lin_wed_3d(), dy_bf_quad_hex_3d(), dy_bf_quad_tet(), dy_bf_quad_wed_3d(), dz_bf_lin_hex_3d(), dz_bf_lin_tet(), dz_bf_lin_wed_3d(), dz_bf_quad_hex_3d(), dz_bf_quad_tet(), dz_bf_quad_wed_3d(), and vector::n.
Referenced by quadtet::aver_strains(), quadhex::aver_strains(), linhexrot::aver_strains(), linhex::aver_strains(), linhext::average_flux(), quadhext::capacity_matrix(), linhext::capacity_matrix(), mechtop::give_volume(), quadtet::ipvolume(), quadhex::ipvolume(), linhexrot::ipvolume(), linhex::ipvolume(), quadtet::load_matrix(), quadhex::load_matrix(), linhexrot::load_matrix(), linhex::load_matrix(), quadtet::mass_matrix(), quadhex::mass_matrix(), linhexrot::mass_matrix(), linhex::mass_matrix(), quadhext::quantity_source_vector(), linhext::quantity_source_vector(), quadhext::total_integral(), and linhext::total_integral().