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>]
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
93c2b22d34c8ba333a5e336d7ef65951c073419d4899b82e0e830d280ffe7f6f
|
|
| MD5 |
5fd781e74acc7d064939630ac7998de7
|
|
| BLAKE2b-256 |
89735310a4afe1884e8303ca9fffc2968cafb4c7d5623e563c0aff329d1eb809
|
File details
Details for the file PlotLinearSolverResult-0.1.1-py3-none-any.whl.
File metadata
- Download URL: PlotLinearSolverResult-0.1.1-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ba2abd6a3932701359f6219d54fe50aa203bc213d0f6df46767eff55c2f4bba9
|
|
| MD5 |
aabb62126f04d37ce29164705b436f05
|
|
| BLAKE2b-256 |
319cb6c52bcefa67b07ab2e7230b5bfd14542f5d54ce29834fc9af3f0933d0ed
|