![]() |
Chi-Tech
|
Functions | |
| void | chi_lua::chiUnpartitionedMeshUploadVertex (int handle, double x, double y, double z) |
| void | chi_lua::chiUnpartitionedMeshUploadCell (int handle, lua_table cell_table) |
| void | chi_lua::chiUnpartitionedMeshFinalizeEmpty (int handle) |
| void | chi_lua::chiCreateEmptyUnpartitionedMesh () |
| void | chi_lua::chiDestroyUnpartitionedMesh (int handle) |
| Handle | chi_lua::chiUnpartitionedMeshFromVTU (char file_name, char field) |
| Handle | chi_lua::chiUnpartitionedMeshFromPVTU (char file_name, char field) |
| Handle | chi_lua::chiUnpartitionedMeshFromEnsightGold (char file_name, float scale) |
| Handle | chi_lua::chiUnpartitionedMeshFromWavefrontOBJ (char file_name) |
| Handle | chi_lua::chiUnpartitionedMeshFromMshFormat (char file_name) |
| Handle | chi_lua::chiUnpartitionedMeshFromExodusII (char file_name, float scale) |
| void chi_lua::chiCreateEmptyUnpartitionedMesh | ( | ) |
Creates an empty unpartitioned mesh. An empty unpartitioned mesh is meant to be manipulated with calls to chiUnpartitionedMeshUploadVertex() and chiUnpartitionedMeshUploadCell(). It essentially supports building a mesh manually.
Example usage
Definition at line 2036 of file lua_functions.c.
| void chi_lua::chiDestroyUnpartitionedMesh | ( | int | handle | ) |
Destroy an unpartitioned mesh. This routine should be called for memory sensitive simulations because each process will have a full copy of this data.
| handle | int Handle to mesh. |
Example usage
Definition at line 2052 of file lua_functions.c.
| void chi_lua::chiUnpartitionedMeshFinalizeEmpty | ( | int | handle | ) |
Finalizes a mesh. This usually involves computing centroids and establishing connectivity.
| handle | int Handle to mesh. |
Example usage
Definition at line 2020 of file lua_functions.c.
| Handle chi_lua::chiUnpartitionedMeshFromEnsightGold | ( | char | file_name, |
| float | scale | ||
| ) |
Creates an unpartitioned mesh from starccm+ exported Ensight Gold mesh files.
| file_name | char Filename of the .case file. |
| scale | float Scale to apply to the mesh |
An example mesh creation below:
Definition at line 2133 of file lua_functions.c.
| Handle chi_lua::chiUnpartitionedMeshFromExodusII | ( | char | file_name, |
| float | scale | ||
| ) |
Creates an unpartitioned mesh from ExodusII format.
| file_name | char Filename of the .case file. |
| scale | float Scale to apply to the mesh |
An example mesh creation below:
Definition at line 2207 of file lua_functions.c.
| Handle chi_lua::chiUnpartitionedMeshFromMshFormat | ( | char | file_name | ) |
Creates an unpartitioned mesh from a .msh file.
| file_name | char Filename of the .msh file. |
An example mesh creation below:
Definition at line 2182 of file lua_functions.c.
| Handle chi_lua::chiUnpartitionedMeshFromPVTU | ( | char | file_name, |
| char | field | ||
| ) |
Creates an unpartitioned mesh from VTK Partitioned Unstructured mesh files (.pvtu).
| file_name | char Filename of the .vtu file. |
| field | char Name of the cell data field from which to read material and boundary identifiers (optional). |
An example mesh creation below:
Definition at line 2107 of file lua_functions.c.
| Handle chi_lua::chiUnpartitionedMeshFromVTU | ( | char | file_name, |
| char | field | ||
| ) |
Creates an unpartitioned mesh from VTK Unstructured mesh files.
| file_name | char Filename of the .vtu file. |
| field | char Name of the cell data field from which to read material and boundary identifiers (optional). |
An example mesh creation below:
Definition at line 2079 of file lua_functions.c.
| Handle chi_lua::chiUnpartitionedMeshFromWavefrontOBJ | ( | char | file_name | ) |
Creates an unpartitioned mesh from a wavefront .obj file.
| file_name | char Filename of the .case file. |
An example mesh creation below:
Definition at line 2157 of file lua_functions.c.
| void chi_lua::chiUnpartitionedMeshUploadCell | ( | int | handle, |
| lua_table | cell_table | ||
| ) |
Uploads a cell
| handle | int Handle to mesh. |
| cell_table | lua_table A Lua-table containing fields of data. See cell_table below. |
A lua-table with the following fields:
type string. The value of this field contains the cell's primary type. The value can be "SLAB", "POLYGON" or "POLYHEDRON".sub_type string. The value of this field constains the cell's secondary type. The value can be "SLAB", "POLYGON", "TRIANGLE", "QUADRILATERAL", "POLYHEDRON", "TETRAHEDRON" or "HEXAHEDRON".num_faces int. The value of this field represent the number of faces specified for this cell. Each face is contained in a field "faceX" where X is the face index.material_id int. (Optional) The value of this field holds a material identifier. If not provided, will be defaulted to -1.faceX table. A field holding a lua-table containing the vertex-ids of face X. There must be num_faces of these fields, i.e., "face0", "face1", etc.Example usage
Definition at line 1981 of file lua_functions.c.
| void chi_lua::chiUnpartitionedMeshUploadVertex | ( | int | handle, |
| double | x, | ||
| double | y, | ||
| double | z | ||
| ) |
Uploads a vertex.
| handle | int Handle to mesh. |
| x | double x-coordinate. |
| y | double y-coordinate. |
| z | double z-coordinate. |
Example usage
Definition at line 1926 of file lua_functions.c.