ansys.mapdl.core.Mapdl.prenergy#
- Mapdl.prenergy(energytype='', cname1='', cname2='', cname3='', cname4='', cname5='', cname6='', **kwargs)#
Prints the total energies of a model or the energies of the specified components.
Mechanical APDL Command: PRENERGY
- Parameters:
- energytype
str
Type of energies to be printed:
ALL
- All energies are printed: potential, kinetic, artificial hourglass/drill stiffness, contact stabilization energy, and artificial stabilization energy when applicable. This is the default.SENE
- Potential energy (stiffness energy).KENE
- Kinetic energy.DENE
- Damping energy.WEXT
- Work done by external loads.
- cname1
str
Component names for energies of the components printout.
If
Cname1
is blank, the total energies are listed.If
Cname1
= ALL, the energies are listed for all selected components.If
Cname1
is neither blank nor ALL, it is the name of an existing component. The energies are listed for up to 6 selected components named inCname1
toCname6
.- cname2
str
Component names for energies of the components printout.
If
Cname1
is blank, the total energies are listed.If
Cname1
= ALL, the energies are listed for all selected components.If
Cname1
is neither blank nor ALL, it is the name of an existing component. The energies are listed for up to 6 selected components named inCname1
toCname6
.- cname3
str
Component names for energies of the components printout.
If
Cname1
is blank, the total energies are listed.If
Cname1
= ALL, the energies are listed for all selected components.If
Cname1
is neither blank nor ALL, it is the name of an existing component. The energies are listed for up to 6 selected components named inCname1
toCname6
.- cname4
str
Component names for energies of the components printout.
If
Cname1
is blank, the total energies are listed.If
Cname1
= ALL, the energies are listed for all selected components.If
Cname1
is neither blank nor ALL, it is the name of an existing component. The energies are listed for up to 6 selected components named inCname1
toCname6
.- cname5
str
Component names for energies of the components printout.
If
Cname1
is blank, the total energies are listed.If
Cname1
= ALL, the energies are listed for all selected components.If
Cname1
is neither blank nor ALL, it is the name of an existing component. The energies are listed for up to 6 selected components named inCname1
toCname6
.- cname6
str
Component names for energies of the components printout.
If
Cname1
is blank, the total energies are listed.If
Cname1
= ALL, the energies are listed for all selected components.If
Cname1
is neither blank nor ALL, it is the name of an existing component. The energies are listed for up to 6 selected components named inCname1
toCname6
.
- energytype
Notes
The prenergy command prints out either the total energies of the entire model or the energies of the components depending on the
Cname1
specification.Only existing components based on elements (defined with the cm command) are supported when component energies are listed.
Damping energy (DENE) and work done by external loads (WEXT) are available only if the following were set prior to the analysis solution:
EngCalc
= YES on the trnopt, hrout or mxpand command; andItem
= VENG, ESOL, or ALL on the outres command.If
EngCalc
= YES on the hrout or mxpand command, average, amplitude, and peak values are returned for potential (SENE) and kinetic (KENE) energies.The energy values can be retrieved using the get command with
Entity
= PRENERGY.This command applies to structural elements only.