BDFMaker module

Classes for generation of structural model.

Revision:

1.0.0 $Date: 26/01/2023 10:33$

History:
  1. 1.0.0 - Initial Class Creation

Todo

This code is complicated and should be rewritten much simply.

class BDFMaker.BDFMaker[source]

Bases: object

Class for generation of structural model. Conctivity, material, geometrical boundary conditions.

Input files:
  • ‘winggeom.ini’ (ASCII): information of Outer Mold Line.

  • ‘stlayout.ini’ (ASCII): information of structural layout.

  • ‘material.ini’ (ASCII): information of material properties.

  • ‘Nodes.pickle’ (binary): coordinates of structural nodes.

Output files:
  • ‘mesh_property.bdf’ (ASCII): bulk data of structural model.

Examples:

Example of modle generation

>>> BDFGen = BDFMaker()
>>> BDFGen.Run_main()

Caution

Stacking sequence and dummy gauge are hard coded. They should be taken from input files.

Todo

This code is complicated and should be rewritten much simply.

__init__()[source]

BDFMaker Class Initialization.

Input files:
  • ‘winggeom.ini’ (ASCII): information of Outer Mold Line.

  • ‘stlayout.ini’ (ASCII): information of structural layout.

  • ‘material.ini’ (ASCII): information of material properties.

  • ‘Nodes.pickle’ (binary): coordinates of structural nodes.

Parameters

None

Returns

None

Documentation last updated: Jan. 23, 2023 - Shugo Date

GetLoadNodes2()[source]

make DataFrame of surface nodes

Parameters

None

Returns

None

Documentation last updated: Jan. 23, 2023 - Shugo Date

makeBDFSkinData()[source]

make DataFrame of skin elements

Parameters

None

Returns

None

Documentation last updated: Jan. 23, 2023 - Shugo Date

makeBDFSparData()[source]

make DataFrame of spar elements

Parameters

None

Returns

None

Documentation last updated: Jan. 23, 2023 - Shugo Date

makeBDFRibData()[source]

make DataFrame of rib elements

Parameters

None

Returns

None

Documentation last updated: Jan. 23, 2023 - Shugo Date

makeBDFSparCapData()[source]

make DataFrame of spar-cap elements

Parameters

None

Returns

None

Documentation last updated: Jan. 23, 2023 - Shugo Date

MakePSHELL()[source]

make DataFrame of shell properties

Parameters

None

Returns

None

Documentation last updated: Jan. 23, 2023 - Shugo Date

MakePCOMP()[source]

make DataFrame of laminated shell properties

Parameters

None

Returns

None

Documentation last updated: Jan. 23, 2023 - Shugo Date

MakePROD()[source]

make DataFrame of rod elements

Parameters

None

Returns

None

Documentation last updated: Jan. 23, 2023 - Shugo Date

MakePSHELLParamFile()[source]

generate DataFrame of “PSHELL”

Parameters

None

Returns

None

Documentation last updated: Jan. 26, 2023 - Shugo Date

MakePCOMPParamFile()[source]

generate DataFrame of “PCOMP”

Parameters

None

Returns

None

Documentation last updated: Jan. 26, 2023 - Shugo Date

MakePRODParamFile()[source]

generate DataFrame of “PROD”

Parameters

None

Returns

None

Documentation last updated: Jan. 26, 2023 - Shugo Date

makeBDFNodes()[source]

add “GRID” cards to BDF

Parameters

None

Returns

None

Documentation last updated: Jan. 26, 2023 - Shugo Date

makeBDFSpar()[source]

add “CQUAD4” cards of spar elements to BDF

Parameters

None

Returns

None

Documentation last updated: Jan. 26, 2023 - Shugo Date

makeBDFRib()[source]

add “CQUAD4” cards of rib elements to BDF

Parameters

None

Returns

None

Documentation last updated: Jan. 26, 2023 - Shugo Date

makeBDFSkin()[source]

add “CQUAD4” cards of skin elements to BDF

Parameters

None

Returns

None

Documentation last updated: Jan. 26, 2023 - Shugo Date

makeBDFSparCap()[source]

add “CROD” cards of spar-cap elements to BDF

Parameters

None

Returns

None

Documentation last updated: Jan. 26, 2023 - Shugo Date

makeBDFSPCLowWing()[source]

add “SPC” cards of geometrical BC on lower surface to BDF

Parameters

None

Returns

None

Documentation last updated: Jan. 26, 2023 - Shugo Date

makeBDFLoad()[source]

add “FORCE” cards of aerodynamic on lower surface to BDF

Parameters

None

Returns

None

Note

This function is no longer used. It is replaced by bdf_set_force.py

Documentation last updated: Jan. 26, 2023 - Shugo Date

makeGravity()[source]

add “GRAV” cards to BDF

Parameters

None

Returns

None

Note

This function is no longer used. It is replaced by bdf_set_force.py

Documentation last updated: Jan. 26, 2023 - Shugo Date

makeLoad_1G()[source]

add “Load” cards for 1G condition to BDF

Parameters

None

Returns

None

Note

This function is no longer used. It is replaced by bdf_set_force.py

Documentation last updated: Jan. 26, 2023 - Shugo Date

makeLoad_2_5G()[source]

add “Load” cards for 2.5G condition to BDF

Parameters

None

Returns

None

Note

This function is no longer used. It is replaced by bdf_set_force.py

Documentation last updated: Jan. 26, 2023 - Shugo Date

makeLoad_minus1G()[source]

add “Load” cards for -1G condition to BDF

Parameters

None

Returns

None

Note

This function is no longer used. It is replaced by bdf_set_force.py

Documentation last updated: Jan. 26, 2023 - Shugo Date

makeLoad_taxing()[source]

add “Load” cards for taxing condition to BDF

Parameters

None

Returns

None

Note

This function is no longer used. It is replaced by bdf_set_force.py

Documentation last updated: Jan. 26, 2023 - Shugo Date

MakeInputData_Mat()[source]

add “MAT1” and “MAT8” cards to BDF

Parameters

None

Returns

None

Documentation last updated: Jan. 26, 2023 - Shugo Date

MakeInputData_PD_PCOMP()[source]

add “PCOMP” cards to BDF

Parameters

None

Returns

None

Documentation last updated: Jan. 26, 2023 - Shugo Date

MakeInputData_PD_PSHELL()[source]

add “PSHELL” cards to BDF

Parameters

None

Returns

None

Documentation last updated: Jan. 26, 2023 - Shugo Date

MakeInputData_PD_PROD()[source]

add “PROD” cards to BDF

Parameters

None

Returns

None

Documentation last updated: Jan. 26, 2023 - Shugo Date

Run_ElementProperty()[source]

Administrator for generation of property, material and element DataFrames

Parameters

None

Returns

None

Documentation last updated: Jan. 26, 2023 - Shugo Date

Run_BDF()[source]

Administrator for adding of property, material and element cards

Parameters

None

Returns

None

Documentation last updated: Jan. 26, 2023 - Shugo Date

Write_BDF()[source]

export BDF file

Parameters

None

Returns

None

Documentation last updated: Jan. 26, 2023 - Shugo Date

Calc_mass_properties()[source]

calculate mass, center of gravity, and moment of inertia

Parameters

None

Returns

None

Documentation last updated: Jan. 26, 2023 - Shugo Date

Calc_Volume()[source]

calculate volume of wingbox

Parameters

None

Returns

None

Note

this method can be alternated by ch.volume

Documentation last updated: Jan. 26, 2023 - Shugo Date

tetrahedron_volume(a, b, c, d)[source]

calculate volume of tetrahedron

Parameters

None

Returns

None

Documentation last updated: Jan. 26, 2023 - Shugo Date

Get_Weight()[source]

get weight of wingbox

Parameters

None

Returns

weight of wingbox

Return type

self.mass (float)

Documentation last updated: Jan. 26, 2023 - Shugo Date

Get_cg()[source]

get center of gravity of wingbox

Parameters

None

Returns

center of gravity

Return type

self.cg (float)

Documentation last updated: Jan. 26, 2023 - Shugo Date

Get_MomentOfInertia()[source]

get moment of inertia of wingbox

Parameters

None

Returns

moment of inertia

Return type

self.MomentOfInertia (float)

Documentation last updated: Jan. 26, 2023 - Shugo Date

Get_Vol()[source]

get volume of wingbox

Parameters

None

Returns

volume of wingbox

Return type

self.Vol (float)

Documentation last updated: Jan. 26, 2023 - Shugo Date

read_nodes(file)[source]

read nodal coordinates from pickle file

Parameters

file (string) – file name of pickle

Returns

nodal coordinates

Return type

nodes (pd.DataFrame)

Documentation last updated: Jan. 26, 2023 - Shugo Date

read_forces(file)[source]

read aerodynamic force

Parameters

file (string) – file name of aerodynamic force

Returns

nodal force on surface nodes

Return type

force (pd.DataFrame)

Documentation last updated: Jan. 26, 2023 - Shugo Date

Run_main()[source]

main sequence

Procedure:
  1. read coordinates

  2. generate bulk data of structural model

Parameters

None

Returns

None

Documentation last updated: Jan. 26, 2023 - Shugo Date