-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathvolco_fea.py
More file actions
28 lines (23 loc) · 862 Bytes
/
volco_fea.py
File metadata and controls
28 lines (23 loc) · 862 Bytes
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
"""
VOLCO FEA Module
This module provides a simplified interface to the Finite Element Analysis (FEA)
functionality in VOLCO. It allows users to perform structural analysis on voxel models,
visualize results, and save/load analysis data.
Basic usage:
from volco_fea import analyze_voxel_matrix, Surface
# Define boundary conditions
boundary_conditions = {
'constraints': {
Surface.MINUS_Z: "fix", # Fix bottom surface
Surface.PLUS_Z: [None, None, -0.1, None, None, None] # Apply displacement on top
}
}
# Run analysis
results = analyze_voxel_matrix(
voxel_matrix=voxel_matrix,
voxel_size=voxel_size,
boundary_conditions=boundary_conditions
)
"""
# Re-export all FEA functionality from the main module (no duplication!)
from app.postprocessing.fea import *