Skip to main content

This project is for plot LinearMSTMM solver result that is write with hdf5.

Project description

PlotLinearSolverResult

This project is for plot LinearMSTMM solver result that is write with hdf5.

import PlotLinearSolverResult.read_from_hdf5 as rh
import matplotlib.pyplot as plt
import numpy as np

f = rh.H5File('test_write_vibration_characteristics.h5')
f.print_directory_information()
​    ├──Animation
​       └──Index
​          ├──Ground
​             └──Frame
​          └──Part_Beam
​             ├──Frame
​             └──Part_BeamNodes
​    ├──Curve
​       └──Index
​          ├──Ground
​             └──Markers
​                └──Marker_0
​          └──Part_Beam
​             └──Nodes
​    ├──ModalInformation
​       ├──Index
​          ├──Ground
​             └──Frame
​          └──Part_Beam
​             ├──Frame
​             └──Part_BeamNodes
​       ├──NaturalFrequencies
​       └──SystemModalMass
​    └──TimeStamps
​    [[[['/Animation/Index/Ground/Frame'],
​       ['/Animation/Index/Part_Beam/Frame',
​        '/Animation/Index/Part_Beam/Part_BeamNodes']]],
​     [[[['/Curve/Index/Ground/Markers/Marker_0']], [[]]]],
​     [[['/ModalInformation/Index/Ground/Frame'],
​       ['/ModalInformation/Index/Part_Beam/Frame',
​        '/ModalInformation/Index/Part_Beam/Part_BeamNodes']],
​      '/ModalInformation/NaturalFrequencies',
​      '/ModalInformation/SystemModalMass'],
​     '/TimeStamps']
keys = f.get_keys_attrs_dset('/Animation/Index/Part_Beam/Part_BeamNodes')
keys[5]
​    'PhysicalDisplacementY'
index = f.get_index_attr_dset_in_datas('/Animation/Index/Part_Beam/Part_BeamNodes',keys[5])
animation_datas = f.get_animation_datas()
times = f.get_TimeStamps()
plt.plot(times,animation_datas[:,index[0]])
​    [<matplotlib.lines.Line2D at 0x1ef4062c8d0>]

image-20230313114802427

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

PlotLinearSolverResult-0.1.1.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

PlotLinearSolverResult-0.1.1-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file PlotLinearSolverResult-0.1.1.tar.gz.

File metadata

  • Download URL: PlotLinearSolverResult-0.1.1.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for PlotLinearSolverResult-0.1.1.tar.gz
Algorithm Hash digest
SHA256 93c2b22d34c8ba333a5e336d7ef65951c073419d4899b82e0e830d280ffe7f6f
MD5 5fd781e74acc7d064939630ac7998de7
BLAKE2b-256 89735310a4afe1884e8303ca9fffc2968cafb4c7d5623e563c0aff329d1eb809

See more details on using hashes here.

File details

Details for the file PlotLinearSolverResult-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for PlotLinearSolverResult-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ba2abd6a3932701359f6219d54fe50aa203bc213d0f6df46767eff55c2f4bba9
MD5 aabb62126f04d37ce29164705b436f05
BLAKE2b-256 319cb6c52bcefa67b07ab2e7230b5bfd14542f5d54ce29834fc9af3f0933d0ed

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page