static_loads
Module
digraph inheritancef12756b872 {
bgcolor=transparent;
rankdir=LR;
size="";
"pyNastran.bdf.cards.base_card.BaseCard" [URL="../pyNastran.bdf.cards.base_card.html#pyNastran.bdf.cards.base_card.BaseCard",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Defines a series of base methods for every card class"];
"pyNastran.bdf.cards.loads.loads.Load" [URL="pyNastran.bdf.cards.loads.loads.html#pyNastran.bdf.cards.loads.loads.Load",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="defines the DefaultLoad class"];
"pyNastran.bdf.cards.base_card.BaseCard" -> "pyNastran.bdf.cards.loads.loads.Load" [arrowsize=0.5,style="setlinewidth(0.5)"];
"pyNastran.bdf.cards.loads.loads.LoadCombination" [URL="pyNastran.bdf.cards.loads.loads.html#pyNastran.bdf.cards.loads.loads.LoadCombination",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Common method for LOAD, DLOAD"];
"pyNastran.bdf.cards.base_card.BaseCard" -> "pyNastran.bdf.cards.loads.loads.LoadCombination" [arrowsize=0.5,style="setlinewidth(0.5)"];
"pyNastran.bdf.cards.loads.static_loads.ACCEL" [URL="#pyNastran.bdf.cards.loads.static_loads.ACCEL",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Acceleration Load"];
"pyNastran.bdf.cards.base_card.BaseCard" -> "pyNastran.bdf.cards.loads.static_loads.ACCEL" [arrowsize=0.5,style="setlinewidth(0.5)"];
"pyNastran.bdf.cards.loads.static_loads.ACCEL1" [URL="#pyNastran.bdf.cards.loads.static_loads.ACCEL1",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Acceleration Load"];
"pyNastran.bdf.cards.base_card.BaseCard" -> "pyNastran.bdf.cards.loads.static_loads.ACCEL1" [arrowsize=0.5,style="setlinewidth(0.5)"];
"pyNastran.bdf.cards.loads.static_loads.CLOAD" [URL="#pyNastran.bdf.cards.loads.static_loads.CLOAD",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Static Load Combination for Superelement Loads (Superposition)"];
"pyNastran.bdf.cards.loads.loads.LoadCombination" -> "pyNastran.bdf.cards.loads.static_loads.CLOAD" [arrowsize=0.5,style="setlinewidth(0.5)"];
"pyNastran.bdf.cards.loads.static_loads.FORCE" [URL="#pyNastran.bdf.cards.loads.static_loads.FORCE",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Defines a static concentrated force at a grid point by specifying a"];
"pyNastran.bdf.cards.loads.static_loads.Load0" -> "pyNastran.bdf.cards.loads.static_loads.FORCE" [arrowsize=0.5,style="setlinewidth(0.5)"];
"pyNastran.bdf.cards.loads.static_loads.FORCE1" [URL="#pyNastran.bdf.cards.loads.static_loads.FORCE1",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Defines a static concentrated force at a grid point by specification of a"];
"pyNastran.bdf.cards.loads.static_loads.Load1" -> "pyNastran.bdf.cards.loads.static_loads.FORCE1" [arrowsize=0.5,style="setlinewidth(0.5)"];
"pyNastran.bdf.cards.loads.static_loads.FORCE2" [URL="#pyNastran.bdf.cards.loads.static_loads.FORCE2",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Defines a static concentrated force at a grid point by specification of a"];
"pyNastran.bdf.cards.loads.static_loads.Load2" -> "pyNastran.bdf.cards.loads.static_loads.FORCE2" [arrowsize=0.5,style="setlinewidth(0.5)"];
"pyNastran.bdf.cards.loads.static_loads.GRAV" [URL="#pyNastran.bdf.cards.loads.static_loads.GRAV",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Defines acceleration vectors for gravity or other acceleration loading."];
"pyNastran.bdf.cards.base_card.BaseCard" -> "pyNastran.bdf.cards.loads.static_loads.GRAV" [arrowsize=0.5,style="setlinewidth(0.5)"];
"pyNastran.bdf.cards.loads.static_loads.LOAD" [URL="#pyNastran.bdf.cards.loads.static_loads.LOAD",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="+------+-----+------+------+----+-----+----+----+----+"];
"pyNastran.bdf.cards.loads.loads.LoadCombination" -> "pyNastran.bdf.cards.loads.static_loads.LOAD" [arrowsize=0.5,style="setlinewidth(0.5)"];
"pyNastran.bdf.cards.loads.static_loads.Load0" [URL="#pyNastran.bdf.cards.loads.static_loads.Load0",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="common class for FORCE, MOMENT"];
"pyNastran.bdf.cards.base_card.BaseCard" -> "pyNastran.bdf.cards.loads.static_loads.Load0" [arrowsize=0.5,style="setlinewidth(0.5)"];
"pyNastran.bdf.cards.loads.static_loads.Load1" [URL="#pyNastran.bdf.cards.loads.static_loads.Load1",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="common class for FORCE1, MOMENT1"];
"pyNastran.bdf.cards.base_card.BaseCard" -> "pyNastran.bdf.cards.loads.static_loads.Load1" [arrowsize=0.5,style="setlinewidth(0.5)"];
"pyNastran.bdf.cards.loads.static_loads.Load2" [URL="#pyNastran.bdf.cards.loads.static_loads.Load2",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="common class for FORCE2, MOMENT2"];
"pyNastran.bdf.cards.base_card.BaseCard" -> "pyNastran.bdf.cards.loads.static_loads.Load2" [arrowsize=0.5,style="setlinewidth(0.5)"];
"pyNastran.bdf.cards.loads.static_loads.MOMENT" [URL="#pyNastran.bdf.cards.loads.static_loads.MOMENT",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Defines a static concentrated moment at a grid point by specifying a"];
"pyNastran.bdf.cards.loads.static_loads.Load0" -> "pyNastran.bdf.cards.loads.static_loads.MOMENT" [arrowsize=0.5,style="setlinewidth(0.5)"];
"pyNastran.bdf.cards.loads.static_loads.MOMENT1" [URL="#pyNastran.bdf.cards.loads.static_loads.MOMENT1",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Defines a static concentrated moment at a grid point by specifying a"];
"pyNastran.bdf.cards.loads.static_loads.Load1" -> "pyNastran.bdf.cards.loads.static_loads.MOMENT1" [arrowsize=0.5,style="setlinewidth(0.5)"];
"pyNastran.bdf.cards.loads.static_loads.MOMENT2" [URL="#pyNastran.bdf.cards.loads.static_loads.MOMENT2",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Defines a static concentrated moment at a grid point by specification"];
"pyNastran.bdf.cards.loads.static_loads.Load2" -> "pyNastran.bdf.cards.loads.static_loads.MOMENT2" [arrowsize=0.5,style="setlinewidth(0.5)"];
"pyNastran.bdf.cards.loads.static_loads.PLOAD" [URL="#pyNastran.bdf.cards.loads.static_loads.PLOAD",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Static Pressure Load"];
"pyNastran.bdf.cards.loads.loads.Load" -> "pyNastran.bdf.cards.loads.static_loads.PLOAD" [arrowsize=0.5,style="setlinewidth(0.5)"];
"pyNastran.bdf.cards.loads.static_loads.PLOAD1" [URL="#pyNastran.bdf.cards.loads.static_loads.PLOAD1",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Applied Load on CBAR, CBEAM or CBEND Elements"];
"pyNastran.bdf.cards.loads.loads.Load" -> "pyNastran.bdf.cards.loads.static_loads.PLOAD1" [arrowsize=0.5,style="setlinewidth(0.5)"];
"pyNastran.bdf.cards.loads.static_loads.PLOAD2" [URL="#pyNastran.bdf.cards.loads.static_loads.PLOAD2",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="+--------+-----+------+------+------+------+------+------+------+"];
"pyNastran.bdf.cards.loads.loads.Load" -> "pyNastran.bdf.cards.loads.static_loads.PLOAD2" [arrowsize=0.5,style="setlinewidth(0.5)"];
"pyNastran.bdf.cards.loads.static_loads.PLOAD4" [URL="#pyNastran.bdf.cards.loads.static_loads.PLOAD4",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="``Solid Format``"];
"pyNastran.bdf.cards.loads.loads.Load" -> "pyNastran.bdf.cards.loads.static_loads.PLOAD4" [arrowsize=0.5,style="setlinewidth(0.5)"];
}
All static loads are defined in this file. This includes:
LOAD
GRAV
ACCEL
ACCEL1
FORCE / MOMENT
FORCE1 / MOMENT1
FORCE2 / MOMENT2
MOMENT
PLOAD
PLOAD2
PLOAD4
- class pyNastran.bdf.cards.loads.static_loads.ACCEL(sid, N, direction, locs, vals, cid=0, comment='')[source]
Bases:
BaseCard
Acceleration Load
Defines static acceleration loads, which may vary over a region of the structural model. The load variation is based upon the tabular input defined on this Bulk Data entry.
1
2
3
4
5
6
7
8
9
ACCEL
SID
CID
N1
N2
N3
DIR
LOC1
VAL1
LOC2
VAL2
Continues in Groups of 2
ACCEL
100
2
0.0
1.0
2.0 | X | |
1.0
1.1
2.0
2.1
3.0
3.1
4.0
4.1
Creates an ACCEL card
- Parameters:
- sidint
load id
- N(3, ) float ndarray
the acceleration vector in the cid frame
- directionstr
Component direction of acceleration variation {X, Y, Z}
- locslist[float]
Location along direction DIR in coordinate system CID for specification of a load scale factor.
- valslist[float]
The load scale factor associated with location LOCi
- cidint; default=0
the coordinate system for the load
- commentstr; default=’’
a comment for the card
- N
Components of the acceleration vector measured in coordinate system CID. (Real; at least one Ni != 0)
- classmethod add_card(card: BDFCard, comment='')[source]
Adds a ACCEL card from
BDF.add_card(...)
- Parameters:
- cardBDFCard()
a BDFCard object
- commentstr; default=’’
a comment for the card
- cid
Coordinate system identification number. (Integer>0: Default=0)
- cross_reference(model: BDF) None [source]
Cross links the card so referenced cards can be extracted directly
- Parameters:
- modelBDF()
the BDF object
- direction
Component direction of acceleration variation. (Character; one of X,Y or Z)
- sid
Load set identification number (Integer>0)
- type = 'ACCEL'
- class pyNastran.bdf.cards.loads.static_loads.ACCEL1(sid, scale, N, nodes, cid=0, comment='')[source]
Bases:
BaseCard
Acceleration Load
Defines static acceleration loads at individual GRID points.
1
2
3
4
5
6
7
ACCEL1
SID
CID
A
N1
N2
N3
GRIDID1
GRIDID2
etc
Creates an ACCEL1 card
- Parameters:
- sidint
load id
- scalefloat
scale factor for load
- N(3, ) float ndarray
the acceleration vector in the cid frame
- directionstr
Component direction of acceleration variation {X, Y, Z}
- nodeslist[int]
the nodes to apply acceleration to
- cidint; default=0
the coordinate system for the load
- commentstr; default=’’
a comment for the card
- N
Components of the acceleration vector measured in coordinate system CID. (Real; at least one Ni != 0)
- _properties = ['node_ids']
- classmethod add_card(card: BDFCard, comment='')[source]
Adds a ACCEL1 card from
BDF.add_card(...)
- Parameters:
- cardBDFCard()
a BDFCard object
- commentstr; default=’’
a comment for the card
- cid
Coordinate system identification number. (Integer>0: Default=0)
- cross_reference(model: BDF) None [source]
Cross links the card so referenced cards can be extracted directly
- Parameters:
- modelBDF()
the BDF object
- property node_ids
- nodes
nodes to apply the acceleration to
- scale
Acceleration vector scale factor. (Real)
- sid
Load set identification number (Integer>0)
- type = 'ACCEL1'
- class pyNastran.bdf.cards.loads.static_loads.CLOAD(sid, scale, scale_factors, load_ids, comment='')[source]
Bases:
LoadCombination
Static Load Combination for Superelement Loads (Superposition)
references excite ids (e.g., an LSEQ); looks like a LOAD
Common method for LOAD, DLOAD
- Parameters:
- sidint
load id
- scalefloat
overall scale factor
- scale_factorslist[float]
individual scale factors (corresponds to load_ids)
- load_idslist[int]
individual load_ids (corresponds to scale_factors)
- commentstr; default=’’
a comment for the card
- cross_reference(model: BDF) None [source]
Cross links the card so referenced cards can be extracted directly
- Parameters:
- modelBDF()
the BDF object
- type = 'CLOAD'
- class pyNastran.bdf.cards.loads.static_loads.FORCE(sid, node, mag, xyz, cid=0, comment='')[source]
Bases:
Load0
Defines a static concentrated force at a grid point by specifying a scale factor and a vector that determines the direction.
1
2
3
4
5
6
7
8
FORCE
SID
NODE
CID
MAG
FX
FY
FZ
FORCE
3
1
Creates a FORCE card
- Parameters:
- sidint
load id
- nodeint
the node to apply the load to
- magfloat
the load’s magnitude
- xyz(3, ) float ndarray
the load direction in the cid frame
- cidint; default=0
the coordinate system for the load
- commentstr; default=’’
a comment for the card
- type = 'FORCE'
- class pyNastran.bdf.cards.loads.static_loads.FORCE1(sid, node, mag, g1, g2, comment='')[source]
Bases:
Load1
Defines a static concentrated force at a grid point by specification of a magnitude and two grid points that determine the direction.
1
2
3
4
5
6
FORCE1
SID
G
F
G1
G2
FORCE1
6
13
-2.93
16
13
Creates a FORCE1 card
- Parameters:
- sidint
load id
- nodeint
the node to apply the load to
- magfloat
the load’s magnitude
- n1 / n2int / int
defines the load direction n = n2 - n1
- commentstr; default=’’
a comment for the card
- type = 'FORCE1'
- class pyNastran.bdf.cards.loads.static_loads.FORCE2(sid, node, mag, g1, g2, g3, g4, comment='')[source]
Bases:
Load2
Defines a static concentrated force at a grid point by specification of a magnitude and four grid points that determine the direction.
1
2
3
4
5
6
7
8
FORCE2
SID
G
F
G1
G2
G3
G4
Creates a FORCE2/MOMENT2 card
- Parameters:
- sidint
load id
- nodeint
the node to apply the load to
- magfloat
the load’s magnitude
- g1 / g2 / g3 / g4int / int / int / int
defines the load direction n = (g2 - g1) x (g4 - g3)
- commentstr; default=’’
a comment for the card
- _properties = ['scaled_vector', 'node_id', 'node_ids']
- type = 'FORCE2'
- class pyNastran.bdf.cards.loads.static_loads.GRAV(sid, scale, N, cid=0, mb=0, comment='')[source]
Bases:
BaseCard
Defines acceleration vectors for gravity or other acceleration loading.
1
2
3
4
5
6
7
8
GRAV
SID
CID
A
N1
N2
N3
MB
GRAV
1
3
32.2
0.0
0.0
-1.0
Creates an GRAV card
- Parameters:
- sidint
load id
- scalefloat
scale factor for load
- N(3, ) float ndarray
the acceleration vector in the cid frame
- cidint; default=0
the coordinate system for the load
- mbint; default=0
???
- commentstr; default=’’
a comment for the card
- N
Acceleration vector components measured in coordinate system CID
- classmethod add_card(card, comment='')[source]
Adds a GRAV card from
BDF.add_card(...)
- Parameters:
- cardBDFCard()
a BDFCard object
- commentstr; default=’’
a comment for the card
- cid
Coordinate system identification number.
- cross_reference(model: BDF) None [source]
Cross links the card so referenced cards can be extracted directly
- Parameters:
- modelBDF()
the BDF object
- mb
Indicates whether the CID coordinate system is defined in the main Bulk Data Section (MB = -1) or the partitioned superelement Bulk Data Section (MB = 0). Coordinate systems referenced in the main Bulk Data Section are considered stationary with respect to the assembly basic coordinate system. See Remark 10. (Integer; Default = 0)
- repr_fields()[source]
Gets the fields in their simplified form
- Returns:
- fieldslist[varies]
the fields that define the card
- scale
scale factor
- sid
Set identification number
- type = 'GRAV'
- class pyNastran.bdf.cards.loads.static_loads.LOAD(sid, scale, scale_factors, load_ids, comment='')[source]
Bases:
LoadCombination
1
2
3
4
5
6
7
8
9
LOAD
SID
S
S1
L1
S2
L2
S3
L3
S4
L4
etc.
LOAD
101
-0.5
1.0
3
6.2
4
Creates a LOAD card
- Parameters:
- sidint
load id
- scalefloat
overall scale factor
- scale_factorslist[float]
individual scale factors (corresponds to load_ids)
- load_idslist[int]
individual load_ids (corresponds to scale_factors)
- commentstr; default=’’
a comment for the card
- .. note:: MSC can handle self-referencing loads, NX cannot
- cross_reference(model: BDF) None [source]
Cross links the card so referenced cards can be extracted directly
- Parameters:
- modelBDF()
the BDF object
- get_reduced_loads(resolve_load_card=False, filter_zero_scale_factors=False)[source]
Get all load objects in a simplified form, which means all scale factors are already applied and only base objects (no LOAD cards) will be returned.
- Parameters:
- resolve_load_cardbool; default=False
Nastran requires that LOAD cards do not reference other load cards This feature can be enabled.
- filter_zero_scale_factorsbool; default=False
Nastran does not filter loads with a 0.0 scale factor. So, if you have a 0.0 load, but are missing load ids, Nastran will throw a fatal error.
- .. todo:: lots more object types to support
- repr_fields()[source]
Gets the fields in their simplified form
- Returns:
- fieldslist[varies]
the fields that define the card
- type = 'LOAD'
- class pyNastran.bdf.cards.loads.static_loads.Load0(sid, node, mag, xyz, cid=0, comment='')[source]
Bases:
BaseCard
common class for FORCE, MOMENT
Creates a FORCE/MOMENT card
- Parameters:
- sidint
load id
- nodeint
the node to apply the load to
- magfloat
the load’s magnitude
- xyz(3, ) float ndarray
the load direction in the cid frame
- cidint; default=0
the coordinate system for the load
- commentstr; default=’’
a comment for the card
- classmethod add_card(card, comment='')[source]
Adds a FORCE/MOMENT card from
BDF.add_card(...)
- Parameters:
- cardBDFCard()
a BDFCard object
- commentstr; default=’’
a comment for the card
- cross_reference(model: BDF) None [source]
Cross links the card so referenced cards can be extracted directly
- Parameters:
- modelBDF()
the BDF object
- property node_id
- repr_fields()[source]
Gets the fields in their simplified form
- Returns:
- fieldslist[varies]
the fields that define the card
- property scaled_vector
- class pyNastran.bdf.cards.loads.static_loads.Load1(sid, node, mag, g1, g2, comment='')[source]
Bases:
BaseCard
common class for FORCE1, MOMENT1
Creates a FORCE1/MOMENT1 card
- Parameters:
- sidint
load id
- nodeint
the node to apply the load to
- magfloat
the load’s magnitude
- n1 / n2int / int
defines the load direction n = n2 - n1
- commentstr; default=’’
a comment for the card
- _properties = ['node_id', 'node_ids', 'scaled_vector']
- classmethod add_card(card, comment='')[source]
Adds a FORCE1/MOMENT1 card from
BDF.add_card(...)
- Parameters:
- cardBDFCard()
a BDFCard object
- commentstr; default=’’
a comment for the card
- cross_reference(model: BDF) None [source]
Cross links the card so referenced cards can be extracted directly
- Parameters:
- modelBDF()
the BDF object
- property node_id
- property node_ids
- repr_fields()[source]
Gets the fields in their simplified form
- Returns:
- fieldslist[varies]
the fields that define the card
- safe_cross_reference(model: BDF, safe_coord, debug=True)[source]
Todo
cross reference and fix repr function
- property scaled_vector
- class pyNastran.bdf.cards.loads.static_loads.Load2(sid, node, mag, g1, g2, g3, g4, comment='')[source]
Bases:
BaseCard
common class for FORCE2, MOMENT2
Creates a FORCE2/MOMENT2 card
- Parameters:
- sidint
load id
- nodeint
the node to apply the load to
- magfloat
the load’s magnitude
- g1 / g2 / g3 / g4int / int / int / int
defines the load direction n = (g2 - g1) x (g4 - g3)
- commentstr; default=’’
a comment for the card
- _properties = ['node_id', 'node_ids']
- classmethod add_card(card, comment='')[source]
Adds a FORCE2/MOMENT2 card from
BDF.add_card(...)
- Parameters:
- cardBDFCard()
a BDFCard object
- commentstr; default=’’
a comment for the card
- cross_reference(model: BDF) None [source]
Cross links the card so referenced cards can be extracted directly
- Parameters:
- modelBDF()
the BDF object
- property node_id
- property node_ids
- repr_fields()[source]
Gets the fields in their simplified form
- Returns:
- fieldslist[varies]
the fields that define the card
- safe_cross_reference(model: BDF, safe_coord, debug=True)[source]
Todo
cross reference and fix repr function
- property scaled_vector
- class pyNastran.bdf.cards.loads.static_loads.MOMENT(sid, node, mag, xyz, cid=0, comment='')[source]
Bases:
Load0
Defines a static concentrated moment at a grid point by specifying a scale factor and a vector that determines the direction.
1
2
3
4
5
6
7
8
MOMENT
SID
G
CID
M
N1
N2
N3
MOMENT
2
5
6
2.9
0.0
1.0
0.0
Creates a MOMENT card
- Parameters:
- sidint
load id
- nodeint
the node to apply the load to
- magfloat
the load’s magnitude
- xyz(3, ) float ndarray
the load direction in the cid frame
- cidint; default=0
the coordinate system for the load
- commentstr; default=’’
a comment for the card
- property node_id
- property node_ids
all the nodes referenced by the load
- repr_fields()[source]
Gets the fields in their simplified form
- Returns:
- fieldslist[varies]
the fields that define the card
- type = 'MOMENT'
- class pyNastran.bdf.cards.loads.static_loads.MOMENT1(sid, node, mag, g1, g2, comment='')[source]
Bases:
Load1
Defines a static concentrated moment at a grid point by specifying a magnitude and two grid points that determine the direction.
1
2
3
4
5
6
MOMENT1
SID
G
M
G1
G2
MOMENT1
6
13
-2.93
16
13
Creates a MOMENT1 card
- Parameters:
- sidint
load id
- nodeint
the node to apply the load to
- magfloat
the load’s magnitude
- n1 / n2int / int
defines the load direction n = n2 - n1
- commentstr; default=’’
a comment for the card
- type = 'MOMENT1'
- class pyNastran.bdf.cards.loads.static_loads.MOMENT2(sid, node, mag, g1, g2, g3, g4, comment='')[source]
Bases:
Load2
Defines a static concentrated moment at a grid point by specification of a magnitude and four grid points that determine the direction.
1
2
3
4
5
6
7
8
MOMENT2
SID
G
M
G1
G2
G3
G4
Creates a FORCE2/MOMENT2 card
- Parameters:
- sidint
load id
- nodeint
the node to apply the load to
- magfloat
the load’s magnitude
- g1 / g2 / g3 / g4int / int / int / int
defines the load direction n = (g2 - g1) x (g4 - g3)
- commentstr; default=’’
a comment for the card
- _properties = ['scaled_vector', 'node_id', 'node_ids']
- type = 'MOMENT2'
- class pyNastran.bdf.cards.loads.static_loads.PLOAD(sid, pressure, nodes, comment='')[source]
Bases:
Load
Static Pressure Load
Defines a uniform static pressure load on a triangular or quadrilateral surface comprised of surface elements and/or the faces of solid elements.
1
2
3
4
5
6
7
PLOAD
SID
P
G1
G2
G3
G4
PLOAD
1
-4.0
16
32
11
Creates a PLOAD card, which defines a uniform pressure load on a shell/solid face or arbitrarily defined quad/tri face.
- Parameters:
- sidint
load id
- pressurefloat
the pressure to apply
- nodeslist[int]
The nodes that are used to define the normal are defined using the same method as the CTRIA3/CQUAD4 normal. n = 3 or 4
- commentstr; default=’’
a comment for the card
- _properties = ['node_ids']
- classmethod add_card(card, comment='')[source]
Adds a PLOAD card from
BDF.add_card(...)
- Parameters:
- cardBDFCard()
a BDFCard object
- commentstr; default=’’
a comment for the card
- cross_reference(model: BDF) None [source]
Cross links the card so referenced cards can be extracted directly
- Parameters:
- modelBDF()
the BDF object
- repr_fields()[source]
Gets the fields in their simplified form
- Returns:
- fieldslist[varies]
the fields that define the card
- type = 'PLOAD'
- class pyNastran.bdf.cards.loads.static_loads.PLOAD1(sid, eid, load_type, scale, x1, p1, x2=None, p2=None, comment='')[source]
Bases:
Load
Applied Load on CBAR, CBEAM or CBEND Elements
Defines concentrated, uniformly distributed, or linearly distributed applied loads to the CBAR or CBEAM elements at user-chosen points along the axis. For the CBEND element, only distributed loads over an entire length may be defined.
1
2
3
4
5
6
7
8
9
PLOAD1
SID
EID
TYPE
SCALE
X1
P1
X2
P2
PLOAD1
25
1065
MY
FRPR
0.2
2.5E3
0.8
3.5E3
Creates a PLOAD1 card, which may be applied to a CBAR/CBEAM
- Parameters:
- sidint
load id
- eidint
element to apply the load to
- load_typestr
type of load that’s applied valid_types = {FX, FY, FZ, FXE, FYE, FZE,
MX, MY, MZ, MXE, MYE, MZE}
- scalestr
Determines scale factor for X1, X2. {LE, FR, LEPR, FRPR}
- x1 / x2float / float
the starting/end position for the load application the default for x2 is x1
- p1 / p2float / float
the magnitude of the load at x1 and x2 the default for p2 is p1
- commentstr; default=’’
a comment for the card
- Point Loadx1 == x2
- Distributed Loadx1 != x2
- property Type
- classmethod add_card(card, comment='')[source]
Adds a PLOAD1 card from
BDF.add_card(...)
- Parameters:
- cardBDFCard()
a BDFCard object
- commentstr; default=’’
a comment for the card
- cross_reference(model: BDF) None [source]
Cross links the card so referenced cards can be extracted directly
- Parameters:
- modelBDF()
the BDF object
- repr_fields()[source]
Gets the fields in their simplified form
- Returns:
- fieldslist[varies]
the fields that define the card
- type = 'PLOAD1'
- valid_scales = ['LE', 'FR', 'LEPR', 'FRPR']
- valid_types = ['FX', 'FY', 'FZ', 'FXE', 'FYE', 'FZE', 'MX', 'MY', 'MZ', 'MXE', 'MYE', 'MZE']
- class pyNastran.bdf.cards.loads.static_loads.PLOAD2(sid: int, pressure: float, eids: list[int], comment: str = '')[source]
Bases:
Load
1
2
3
4
5
6 | 7
8
9
PLOAD2
SID
P
EID1
EID2
EID3 | EID4
EID5
EID6
PLOAD2
21
-3.6
4
16
2
PLOAD2
SID
P
EID1
THRU
EID2
Creates a PLOAD2 card, which defines a uniform static pressure load applied to CQUAD4, CSHEAR, or CTRIA3 two-dimensional elements
- Parameters:
- sidint
load id
- pressurefloat
the pressure to apply to the elements
- eidslist[int]
the elements to apply pressure to For NX Nastran and MSC Nastran < 2018 the list must have no more than 6 ids or it must be a continouus monotonic list (e.g., [1, 2, …, 1000]). If you don’t follow this rule, you’ll incur in a fatal error. This limitation does not apply to MSC Nastran >= 2018.
- commentstr; default=’’
a comment for the card
- _properties = ['element_ids']
- classmethod add_card(card, comment: str = '')[source]
Adds a PLOAD2 card from
BDF.add_card(...)
- Parameters:
- cardBDFCard()
a BDFCard object
- commentstr; default=’’
a comment for the card
- Note: for NX Nastran and MSC Nastran < 2018 the list of element ids must have no more than 6
- ids or it must be a continouus monotonic list (e.g., [1, 2, …, 1000]). If you don’t follow
- this rule, you’ll incur in a fatal error. This limitation does not apply to MSC Nastran >= 2018.
- cross_reference(model: BDF) None [source]
Cross links the card so referenced cards can be extracted directly
- Parameters:
- modelBDF()
the BDF object
- property element_ids
- repr_fields() list[Any] [source]
Gets the fields in their simplified form
- Returns:
- fieldslist[varies]
the fields that define the card
- type = 'PLOAD2'
- class pyNastran.bdf.cards.loads.static_loads.PLOAD4(sid, eids, pressures, g1, g34, cid=0, nvector=None, surf_or_line='SURF', line_load_dir='NORM', comment='')[source]
Bases:
Load
Solid Format
Defines a pressure load on a face of a CHEXA, CPENTA, or CTETRA element.
1
2
3
4
5
6
7
8
9
PLOAD4
SID
EID
P1
P2
P3
P4
G1
G3/G4
CID
N1
N2
N3
SORL
LDIR
Shell Format
Defines a pressure load on a face of a CTRIA3, CTRIA6, CTRIAR, CQUAD4, CQUAD8, or CQUADR element.
1
2
3
4
5
6
7
8
9
PLOAD4
SID
EID
P1
P2
P3
P4
THRU
EID2
CID
N1
N2
N3
SORL
LDIR
Warning
NX does not support SORL and LDIR, MSC does
Creates a PLOAD4 card
- Parameters:
- sidint
the load id
- eidslist[int, …]
shells : the range of element ids; must be sequential solids : must be length 1
- pressureslist[float, float, float, float] / float
float : turned into a list of length 4 list[float] :
tri : must be length 4 (the last value should be the same as the 0th value) quad : must be length 4
- g1int/None
only used for solid elements
- g34int / None
only used for solid elements
- cidint; default=0
the coordinate system for nvector
- nvector(3, ) float ndarray
blank : load acts normal to the face float : the local pressure vector
- surf_or_linestr; default=’SURF’
SURF : surface load LINE : line load (only defined for QUADR, TRIAR) not supported
- line_load_dirstr; default=’NORM’
direction of the line load (see surf_or_line); {X, Y, Z, TANG, NORM} not supported
- commentstr; default=’’
a comment for the card
- TODO: fix the way “pressures” works
- _properties = ['node_ids', 'element_ids']
- classmethod add_card(card, comment='')[source]
Adds a PLOAD4 card from
BDF.add_card(...)
- Parameters:
- cardBDFCard()
a BDFCard object
- commentstr; default=’’
a comment for the card
- cid
Coordinate system identification number. See Remark 2. (Integer >= 0;Default=0)
- cross_reference(model: BDF) None [source]
Cross links the card so referenced cards can be extracted directly
- Parameters:
- modelBDF()
the BDF object
- property element_ids
- g1
used for solid element only
- g34
g3/g4 - different depending on CHEXA/CPENTA or CTETRA
- property node_ids
get the node ids
- repr_fields()[source]
Gets the fields in their simplified form
- Returns:
- fieldslist[varies]
the fields that define the card
- type = 'PLOAD4'