Chi-Tech
Mesh Macros

Functions

Two chi_lua::chiMeshCreateUnpartitioned1DOrthoMesh (array_float x_nodes)
 
Two chi_lua::chiMeshCreateUnpartitioned2DOrthoMesh (array_float x_nodes, array_float y_nodes)
 
Two chi_lua::chiMeshCreateUnpartitioned3DOrthoMesh (array_float x_nodes, array_float y_nodes, array_float z_nodes)
 

Detailed Description

These functions are considered "macros" because they encapsulate functionality available from lower level function calls.

Function Documentation

◆ chiMeshCreateUnpartitioned1DOrthoMesh()

Two chi_lua::chiMeshCreateUnpartitioned1DOrthoMesh ( array_float  x_nodes)

Creates a 1D Mesh from an array of 1D vertices.

Parameters
x_nodesarray_float An Array of floating point numbers denoting 1D nodes along x-axis.
Returns
Two handles: unpartitioned-mesh, region

_

Example

An example 1D mesh creation below:

nodes={0.0,0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,1.0}
Handle chiMeshHandlerCreate()
Two chiMeshCreateUnpartitioned1DOrthoMesh(array_float x_nodes)
void chiVolumeMesherSetProperty(int PropertyIndex, varying PropertyValue)
void chiVolumeMesherExecute()
Author
Nak

Definition at line 2231 of file lua_functions.c.

◆ chiMeshCreateUnpartitioned2DOrthoMesh()

Two chi_lua::chiMeshCreateUnpartitioned2DOrthoMesh ( array_float  x_nodes,
array_float  y_nodes 
)

Creates a 2D Orthogonal Mesh from arrays of 1D vertices.

Parameters
x_nodesarray_float An Array of floating point numbers denoting 1D nodes along x-axis.
y_nodesarray_float An Array of floating point numbers denoting 1D nodes along y-axis.
Returns
Two handles: unpartitioned-mesh, region

_

Example

An example 2D mesh creation below:

nodesx={0.0,0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,1.0}
nodesy={0.0,0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,1.0}
Two chiMeshCreateUnpartitioned2DOrthoMesh(array_float x_nodes, array_float y_nodes)
Author
Nak

Definition at line 2257 of file lua_functions.c.

◆ chiMeshCreateUnpartitioned3DOrthoMesh()

Two chi_lua::chiMeshCreateUnpartitioned3DOrthoMesh ( array_float  x_nodes,
array_float  y_nodes,
array_float  z_nodes 
)

Creates a 3D Orthogonal Mesh from arrays of 1D vertices. The underlying mesher is an extruder.

Parameters
x_nodesarray_float An Array of floating point numbers denoting 1D nodes along x-axis.
y_nodesarray_float An Array of floating point numbers denoting 1D nodes along y-axis.
z_nodesarray_float An Array of floating point numbers denoting 1D nodes along z-axis.
Returns
Two handles: unpartitioned-mesh, region

_

Example

An example 3D mesh creation below:

nodesx={0.0,0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,1.0}
nodesy={0.0,0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,1.0}
nodesz={0.0,0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,1.0}
Two chiMeshCreateUnpartitioned3DOrthoMesh(array_float x_nodes, array_float y_nodes, array_float z_nodes)
Author
Nak

Definition at line 2287 of file lua_functions.c.