-
Notifications
You must be signed in to change notification settings - Fork 15
/
geometry.hpp
36 lines (26 loc) · 1.44 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
35
36
#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,
double_vec &tmp_result_sg);
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_vec &tmp_result_sg);
double compute_dt(const Param& param, const Variables& var);
void compute_mass(const Param ¶m, const Variables& var,
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, elem_cache &tmp_result,
int_vec2D &support);
void compute_shape_fn(const Variables& var, const array_t &coord, const conn_t &connectivity,
const double_vec &volume,
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