forked from tan2/DynEarthSol-old
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgeometry.hpp
34 lines (24 loc) · 1.32 KB
/
geometry.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#ifndef DYNEARTHSOL3D_GEOMETRY_HPP
#define DYNEARTHSOL3D_GEOMETRY_HPP
double dist2(const double* a, const double* b);
void compute_volume(const array_t &coord, const conn_t &connectivity,
double_vec &volume);
void compute_dvoldt(const Variables &var, double_vec &dvoldt);
void compute_edvoldt(const Variables &var, double_vec &dvoldt,
double_vec &edvoldt);
void NMD_stress(const Variables &var, double_vec &dp_nd, tensor_t& stress);
double compute_dt(const Param& param, const Variables& var);
void compute_mass(const Param ¶m,
const int_vec &egroups, const conn_t &connectivity,
const double_vec &volume, const MatProps &mat,
double max_vbc_val, double_vec &volume_n,
double_vec &mass, double_vec &tmass);
void compute_shape_fn(const array_t &coord, const conn_t &connectivity,
const double_vec &volume,
const int_vec &egroups,
shapefn &shpdx, shapefn &shpdy, shapefn &shpdz);
double elem_quality(const array_t &coord, const conn_t &connectivity,
const double_vec &volume, int e);
double worst_elem_quality(const array_t &coord, const conn_t &connectivity,
const double_vec &volume, int &worst_elem);
#endif