seapy.system.System

class seapy.system.System[source]

Bases: builtins.object

The System class contains methods for solving the model.

__init__()[source]

Constructor.

Methods

__init__() Constructor.
addComponent(name, model, **properties) Add component to SEA model.
addCoupling(name, model, **properties) Add material to SEA model.
addJunction(name, model, **properties) Add junction to SEA model.
addMaterial(name, model, **properties) Add material to SEA model.
clearResults() Clear the results.
components_info([tablefmt]) Print information about components.
System.createMatrix
excitations_info([tablefmt]) Print information about excitations.
getObject(name) Get object by name.
junctions_info([tablefmt]) Print information about junctions.
System.materials_info
System.objects_info
removeObject(name) Delete object from SEA model.
solveSystem() Solve modal powers.
subsystems_info([tablefmt]) Print information about subsystems.

Attributes

SORT str(object=’‘) -> str
components All components in the system.
couplings All couplings in the system.
excitations All excitations in the system.
junctions All junctions in the system.
materials All materials in the system.
objects All objects in the system.
reference_power float(x) -> floating point number
reference_pressure float(x) -> floating point number
reference_velocity float(x) -> floating point number
solved bool(x) -> bool
subsystems All subsystems in the system.
__init__()[source]

Constructor.

addComponent(name, model, **properties)[source]

Add component to SEA model.

Parameters:
  • name – Name of component.
  • model – Model or type of component. See seapy.components.components_map.
  • properties – Other properties specific to the component.
addCoupling(name, model, **properties)[source]

Add material to SEA model.

addJunction(name, model, **properties)[source]

Add junction to SEA model.

addMaterial(name, model, **properties)[source]

Add material to SEA model.

clean()[source]

Reset modal energy to zero in all subsystems.

clearResults()[source]

Clear the results. Reset modal energies. Set solved to False.

Return type:None
components[source]

All components in the system.

Returns:Generator of components.
Return type:python.types.GeneratorType
components_info(tablefmt='simple')[source]

Print information about components.

couplings[source]

All couplings in the system.

Returns:Generator of couplings.
Return type:python.types.GeneratorType
excitations[source]

All excitations in the system.

Returns:Generator of excitations.
Return type:python.types.GeneratorType
excitations_info(tablefmt='simple')[source]

Print information about excitations.

frequency = None

Frequency object

getObject(name)[source]

Get object by name.

Parameters:name – Name of object.
Returns:Proxy to object.
info(objects, attribute, tablefmt='simple')[source]

Print single attribute of objects.

info_materials()[source]

Print information about materials.

info_objects()[source]

Print information about objects.

junctions[source]

All junctions in the system.

Returns:Generator of junctions.
Return type:python.types.GeneratorType
junctions_info(tablefmt='simple')[source]

Print information about junctions.

materials[source]

All materials in the system.

Returns:Generator of materials.
Return type:python.types.GeneratorType
objects[source]

All objects in the system.

Returns:Generator of objects.
Return type:types.GeneratorType
power_balance_matrix()[source]

Power balance matrix as function of frequency.

Parameters:
  • subsystems (list) – is a list of subsystems. Reason to give the list as argument instead of using self.subsystems is that that list might change during execution.
  • f (int) – is the index of the center frequency of the frequency band
Return type:

numpy.ndarray

See Craik, equation 6.21, page 155.

Yields power balance matrices.

power_vector()[source]

Vector of input power normalized with angular frequency.

See Craik, equation 6.21, page 155

Yields power input vectors.

reference_power = 1e-12

Reference power P_{0}.

reference_pressure = 2e-05

Reference pressure p_{0}.

reference_velocity = 5e-08

Reference velocity v_{0}.

removeObject(name)[source]

Delete object from SEA model.

Parameters:name – Name of object.
Returns:Proxy to object.
solveSystem()[source]

Solve modal powers.

Return type:bool()

This method solves the modal energies for every subsystem. The method createMatrix() is called for every frequency band to construct a matrix of loss factors and modal densities.

solved = False

Switch indicating whether the system (modal energies) were solved or not.

subsystems[source]

All subsystems in the system.

Returns:Generator of subsystems.
Return type:python.types.GeneratorType
subsystems_info(tablefmt='simple')[source]

Print information about subsystems.

Previous topic

seapy.system.Band

This Page