bdf_set_force module
Modules for setting force to BDF file.
Revision: 1.0.0 $Date: 24/01/2023 13:58$
History
1.0.0 - Initial Class Creation
To Do:
- bdf_set_force.read_force(file)[source]
Counter of cards
- Parameters
file (string) – path to the file of force
- Returns
DataFrame of force vectors
- Return type
force (pd.DataFrame)
Documentation last updated: Jan. 24, 2023 - Shugo Date
- bdf_set_force.set_load(ID, id_scales)[source]
generate Load card
- Parameters
ID (int) – ID of load card to be generated
id_scales (list) – lists of FORCE id and scale [[scale1, FORCE_id1], [scale2, FORCE_id2], …]
- Returns
generated load card
- Return type
card (pyNastra card object)
Documentation last updated: Jan. 24, 2023 - Shugo Date
- bdf_set_force.main()[source]
main sequence
- Input files:
‘mesh_property.bdf’: FEM model without force
‘LoadNodes.csv’: nodes where force imposed
‘forceStruct.dat’: force vectors
‘winggeom.ini’: wing geometry condiguration
- Output files:
‘mesh_property_load.bdf’: FEM model with force
- Procedure:
read BDF
read nodes to impose mechanical boundary conditions
read forces
dimensionalize force
set FORCE card
set LOAD card
export BDF
- Parameters
ID (int) – ID of load card to be generated
id_scales (list) – lists of FORCE id and scale [[scale1, FORCE_id1], [scale2, FORCE_id2], …]
- Returns
None
Danger
Parameters for dimensionalization are hard coded. They should be taken from input file or arguments.
Documentation last updated: Jan. 24, 2023 - Shugo Date