Read content from RAF files: .raf and .dyn
Project description
RAFINA: Python module for reading RAF files
This python module allows reading files of RAF type, which are produced by some SINTEF Ocean finite element analysis programs.
In addition to storing results for post-processing purposes, the file may contain required data for analysis restarts.
Programs using the RAF format include SIMLA, BFLEX and UFLEX.
Two file extensions are in use for RAF storage: .raf and .dyn for XPOST readable and DYNPOST readable, respectively. The latter is used for storing time series produced by SIMLA.
The module contains a class Raf, which is initialized with the filename of a RAF file.
The module has been extended with a class Dyn, which accepts .dyn files with program type DYNPOST/SIMLA. This file format is essentially a RAF file (though unreadable by XPOST) which provides time series rather than the FEM element/nodal/integration point results visualized as snapshots at a given loadstep. Note that reading a .dyn file to a Dyn object includes all of the time series as stored on file in their entirety, including trailing zeroes.
Usage example
from rafina import pyraf as pr
myRafFile = pr.Raf("filename.raf")
print(myRafFile.header())
print(myRafFile.timestamp())
# This reads a named array at a given loadstep directly from file to a numpy array
tugcor = myRafFile.array('TUGCOR',0)
myDynFile = pr.Dyn("filename.dyn")
print("Found", myDynFile.nres, "time series in", myDynFile.filename())
for timeseries_name in myDynFile.timeseries_names:
print(timeseries_name)
License
The RAFINA python module is made available with a BSD 3-Clause type permissive license. The license file is included in the package distribution, and may be found in the package installation location.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
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 rafina-0.0.5-py312-none-win_amd64.whl.
File metadata
- Download URL: rafina-0.0.5-py312-none-win_amd64.whl
- Upload date:
- Size: 3.2 MB
- Tags: Python 3.12, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b85209ceafd6fb57205f1a85e326a9bbcc639387d730fe7bb438984bb8758959
|
|
| MD5 |
c6510b8af1b9756efd49a50fc1f7c964
|
|
| BLAKE2b-256 |
7844b43da8180e0b0b373a2f258c4e6aae947f7e15aefb9e0c194ed11e856b0e
|
File details
Details for the file rafina-0.0.5-py312-none-manylinux1_x86_64.whl.
File metadata
- Download URL: rafina-0.0.5-py312-none-manylinux1_x86_64.whl
- Upload date:
- Size: 513.5 kB
- Tags: Python 3.12
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
61e47eb54fe06dcfcd5469b7c3075fbf632152745f033e750ffdcc97a5a5d02c
|
|
| MD5 |
6e36f7a3a2f399cb59e2ebb64bb9cadb
|
|
| BLAKE2b-256 |
4b0db09952ac00d26ea288cac208b053e1927e8adcd34cec714148a75b6023c0
|
File details
Details for the file rafina-0.0.5-py311-none-win_amd64.whl.
File metadata
- Download URL: rafina-0.0.5-py311-none-win_amd64.whl
- Upload date:
- Size: 3.2 MB
- Tags: Python 3.11, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4bb2dd30d73055621dd660ac4a95e47af608062336c3c5e10b2809310e4478a2
|
|
| MD5 |
9d9b7633946f2e27f081ce8b01130070
|
|
| BLAKE2b-256 |
a7896ec8d9bf4a7e3f0658ce039798b31ad704456c74d759927634654522701c
|
File details
Details for the file rafina-0.0.5-py311-none-manylinux1_x86_64.whl.
File metadata
- Download URL: rafina-0.0.5-py311-none-manylinux1_x86_64.whl
- Upload date:
- Size: 511.1 kB
- Tags: Python 3.11
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1d995478333e723e4ab02840f749aecc7a8458eb6de68d77b573f8482e3d01cc
|
|
| MD5 |
8c4e6c2fa018597575219cd211fdc46a
|
|
| BLAKE2b-256 |
110b910298e1770e09f5d850b94e71464040a12d0838a6280f183dad3fa592b7
|
File details
Details for the file rafina-0.0.5-py310-none-win_amd64.whl.
File metadata
- Download URL: rafina-0.0.5-py310-none-win_amd64.whl
- Upload date:
- Size: 3.2 MB
- Tags: Python 3.10, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ef9affb2f940d12ca3e821c5164968d02183d9dc205b7175ebecec672ca096a7
|
|
| MD5 |
9c5f76b061ac015128e8010c6ef855a5
|
|
| BLAKE2b-256 |
67401f88f9d22fef862d941217ad636192ca1ebb4528049ff20ddedd2576c39a
|
File details
Details for the file rafina-0.0.5-py310-none-manylinux1_x86_64.whl.
File metadata
- Download URL: rafina-0.0.5-py310-none-manylinux1_x86_64.whl
- Upload date:
- Size: 511.4 kB
- Tags: Python 3.10
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
42242e43d68f2682a43f516f6ca77c424de234ba32865f659f4d69c7ef9c0cae
|
|
| MD5 |
f1536d37b6f8207eec6fcdcc8434aebb
|
|
| BLAKE2b-256 |
e4ece51ac2c6a81c81a1dc460511f058d64be6b9d07909ca9a9002a27d57e909
|
File details
Details for the file rafina-0.0.5-py39-none-win_amd64.whl.
File metadata
- Download URL: rafina-0.0.5-py39-none-win_amd64.whl
- Upload date:
- Size: 3.2 MB
- Tags: Python 3.9, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e08cf6464a5e85b7573dd1332305fff42bbd2926fda0890a5508d9af0885caeb
|
|
| MD5 |
0d4e130d1a13a672b7989886caea8776
|
|
| BLAKE2b-256 |
bfe071717b59419ecbdeae03e8f8760b06332fbeb617516fca6626520fba7787
|
File details
Details for the file rafina-0.0.5-py39-none-manylinux1_x86_64.whl.
File metadata
- Download URL: rafina-0.0.5-py39-none-manylinux1_x86_64.whl
- Upload date:
- Size: 511.4 kB
- Tags: Python 3.9
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ae442fa34730946a853e7d4e9871414ce8c6e63cd07a1f39e3096395d81d2184
|
|
| MD5 |
39193c763d2c528b9434e6a931d126cb
|
|
| BLAKE2b-256 |
5badcc6da90183b736e0d092ad2ee2ea86b3968580657fc246caf5a1be443782
|