 |
6.3
general documentation
|
|
Go to the documentation of this file.
234 const char *dir_name,
235 const char *fmt_name,
236 const char *fmt_opts,
238 bool output_at_start,
cs_lnum_t n_faces
Definition: cs_stl.h:58
cs_real_3_t * coords
Definition: cs_stl.h:60
cs_real_t cs_real_3_t[3]
vector of 3 floating-point values
Definition: cs_defs.h:317
cs_stl_mesh_t ** mesh_list
Definition: cs_stl.h:82
void cs_stl_file_read(cs_stl_mesh_t *stl_mesh, const char *path)
Read a binary STL file and store its content in a STL mesh structure.
Definition: cs_stl.c:1136
#define END_C_DECLS
Definition: cs_defs.h:493
void cs_stl_post_init_writer(const char *case_name, const char *dir_name, const char *fmt_name, const char *fmt_opts, fvm_writer_time_dep_t time_dep, bool output_at_start, bool output_at_end, int frequency_n, double frequency_t)
Create a new writer that will contains the STL mesh added by the user.
Definition: cs_stl.c:1492
double cs_real_t
Floating-point value.
Definition: cs_defs.h:304
void cs_stl_mesh_translate(cs_stl_mesh_t *stl_mesh, double vector[3])
Apply a translation to a STL mesh structure.
Definition: cs_stl.c:1399
#define BEGIN_C_DECLS
Definition: cs_defs.h:492
void cs_stl_refine(cs_stl_mesh_t *stl_mesh, int n_ref)
Refine the mesh following a given STL mesh.
Definition: cs_stl.c:1860
void cs_stl_intersection(cs_stl_mesh_t *stl_mesh, cs_lnum_t n_input, cs_lnum_t *input_idx, cs_lnum_t *n_selected_cells, cs_lnum_t *selected_cells, cs_lnum_t *tria_in_cell_idx, cs_lnum_t **tria_in_cell_lst, cs_lnum_t *max_size)
Compute intersection between a STL mesh and the main mesh.
Definition: cs_stl.c:1665
cs_stl_mesh_t * cs_stl_mesh_add(const char *path)
Add a new STL mesh structure.
Definition: cs_stl.c:1028
double precision, dimension(:,:,:), allocatable theta
Definition: atimbr.f90:123
cs_real_t * seed_coords
Definition: cs_stl.h:66
void cs_stl_file_write(cs_stl_mesh_t *stl_mesh, const char *path)
Write a binary STL file according to a given STL mesh structure.
Definition: cs_stl.c:1565
int n_seeds
Definition: cs_stl.h:63
fvm_nodal_t * ext_mesh
Definition: cs_stl.h:72
void cs_stl_post_add_mesh(cs_stl_mesh_t *stl_mesh)
Associate a STL mesh to the default writer.
Definition: cs_stl.c:1535
cs_stl_mesh_t * cs_stl_mesh_get_by_name(const char *name)
Return a pointer to a STL mesh based on its name if present.
Definition: cs_stl.c:1081
fvm_writer_time_dep_t
Definition: fvm_writer.h:57
int writer_id
Definition: cs_stl.h:87
void cs_stl_set_porosity_seed(cs_stl_mesh_t *stl_mesh, int n_points, cs_real_t *coords)
Set the points outside he STL geometry. Those points will be used as.
Definition: cs_stl.c:1471
int cs_lnum_t
local mesh entity id
Definition: cs_defs.h:298
void cs_stl_mesh_destroy_all(void)
Free all allocated STL mesh structures.
Definition: cs_stl.c:1102
void cs_stl_mesh_transform(cs_stl_mesh_t *stl_mesh, double matrix[3][4])
Apply a transformation matrix to a STL mesh structure.
Definition: cs_stl.c:1366
void cs_stl_mesh_scale(cs_stl_mesh_t *stl_mesh, double scale)
Apply a scaling to a STL mesh structure.
Definition: cs_stl.c:1446
bool is_porous
Definition: cs_stl.h:69
cs_stl_mesh_info_t * cs_glob_stl_meshes
void matrix(const int *iconvp, const int *idiffp, const int *ndircp, const int *isym, const cs_real_t *thetap, const int *imucpp, const cs_real_t coefbp[], const cs_real_t cofbfp[], const cs_real_t rovsdt[], const cs_real_t i_massflux[], const cs_real_t b_massflux[], const cs_real_t i_visc[], const cs_real_t b_visc[], const cs_real_t xcpp[], cs_real_t da[], cs_real_t xa[])
Definition: cs_matrix_building.c:112
cs_lnum_t n_meshes
Definition: cs_stl.h:85
void cs_stl_mesh_rotate(cs_stl_mesh_t *stl_mesh, double theta, double axis[3], double center[3])
Apply a rotation to a STL mesh structure.
Definition: cs_stl.c:1424
void cs_stl_compute_porosity(cs_stl_mesh_t *stl_mesh, cs_real_t *porosity, int *indic)
Compute porosity field according to a given STL mesh.
Definition: cs_stl.c:1995