Cubit Meshing#
make_blade#
- pynumad.analysis.cubit.make_blade.cubit_make_cross_sections(blade, wt_name, settings, cs_params, model2Dor3D, stationList=None, directory='.')#
Directs Cubit to make cross sections from blade object data.
- Parameters:
blade (blade object) – pyNuMAD blade object
wt_name (str) – Used to name any files that are generated.
settings (dict) – _description_
cs_params (dict) – _description_
model2Dor3D (str) – Users should set this ‘2d’. Functions such as cubit_make_solid_blade set this to ‘3d’.
stationList (list, optional) – Integer list of stations user wants cross sections. By default None or empty list makes all the statations.
directory (str) – Name of the directory to store all generated files.
- Returns:
cubit (cubit object) – cubit session data
blade (blade object) – returns the modified blade object
surface_dict (dict) – Keys are integers for the Cubit surface IDs for the cross sections. Each surface has it’s own dictionary with the following keys: ‘curves’, ‘verts’, ‘material_name’, ‘ply_angle’. e.g. >> surface_dict[9] >> {‘curves’: [131, 164, 129, 163], ‘verts’: [500, 501, 497, 496], ‘material_name’: ‘glass_triax’, ‘ply_angle’: 0}
birds_mouth_verts (tuple) – Used internally.
i_station_first_web (int) – Used internally.
i_station_last_web (int) – Used internally.
materials_used (set) – Used for in FEA input file generation to define unique materials.
spanwise_mat_ori_curve (int) – Cubit curve ID for the main spanwise spline corresponding to the curvilinear blade axis.
- Raises:
ValueError – ‘Presweep is untested for cross-sectional meshing’
ValueError – ‘ANBA currently not supported’
NameError – f’Unknown beam cross-sectional solver: {settings[“make_input_for”]}’
NameError – f’Unknown model export format: {settings[“export”]}’
- pynumad.analysis.cubit.make_blade.cubit_make_solid_blade(blade, wt_name, settings, cs_params, stationList=None)#
_summary_
- Parameters:
blade (blade object) – pyNuMAD blade object
wt_name (str) – Used to name any files that are generated.
settings (dict) – _description_
cs_params (dict) – _description_
stationList (list, optional) – Integer list of stations user wants cross sections. By default None or empty list makes all the statations.
- Returns:
materials_used (set) – Used for in FEA input file generation to define unique materials.
- Raises:
ValueError – “Need more than one cross section to make a solid model”