Interpolator¶
interpolator
¶
Interpolator
¶
Interpolator(path_to_src_folder: str, path_to_dest_mesh: str, config: InterpolationConfig, columns: ColumnsConfig)
Class to handle the interpolation operations
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
path_to_src_folder
|
str
|
path where the input cloud points are stored. Also a single file is accepted. |
required |
path_to_dest_mesh
|
str
|
path to the mechanical mesh file |
required |
config
|
InterpolationConfig
|
configuration for the interpolation problem |
required |
columns
|
ColumnsConfig
|
column indices for parsing source and destination files |
required |
Source code in src/interpcore/interpolator.py
interpolate_all
¶
Go through all em forces file and interpolate them
Source code in src/interpcore/interpolator.py
export_to_ansys
¶
Export each interpolated result to an ANSYS format
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
outdir
|
Path
|
output directory for the interpolated files |
required |
Source code in src/interpcore/interpolator.py
compute_scalar_integrals
¶
Compute the integrals of the interpolated results over the destination mesh
Source code in src/interpcore/interpolator.py
compute_EM_resultants
¶
Compute the force and moment resultants of the EM forces and the interpolated forces, and their differences
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
pole
|
ndarray | None
|
reference pole for moment calculation, by default None (0,0,0) |
None
|
Returns:
| Type | Description |
|---|---|
dict[str, dict[str, float]]
|
dictionary containing the resultants and their differences for each interpolated load |
Source code in src/interpcore/interpolator.py
build_vtk_output
¶
Build the VTK output files for visualization
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
outdir
|
Path | None
|
output directory for the vtk files, if None, files are not saved, by default None |
None
|