Skip to main content

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

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

rafina-0.0.6-py312-none-win_amd64.whl (3.3 MB view details)

Uploaded Python 3.12Windows x86-64

rafina-0.0.6-py312-none-manylinux1_x86_64.whl (517.1 kB view details)

Uploaded Python 3.12

rafina-0.0.6-py311-none-win_amd64.whl (3.3 MB view details)

Uploaded Python 3.11Windows x86-64

rafina-0.0.6-py311-none-manylinux1_x86_64.whl (514.7 kB view details)

Uploaded Python 3.11

rafina-0.0.6-py310-none-win_amd64.whl (3.3 MB view details)

Uploaded Python 3.10Windows x86-64

rafina-0.0.6-py310-none-manylinux1_x86_64.whl (515.0 kB view details)

Uploaded Python 3.10

rafina-0.0.6-py39-none-win_amd64.whl (3.3 MB view details)

Uploaded Python 3.9Windows x86-64

rafina-0.0.6-py39-none-manylinux1_x86_64.whl (515.0 kB view details)

Uploaded Python 3.9

File details

Details for the file rafina-0.0.6-py312-none-win_amd64.whl.

File metadata

  • Download URL: rafina-0.0.6-py312-none-win_amd64.whl
  • Upload date:
  • Size: 3.3 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

Hashes for rafina-0.0.6-py312-none-win_amd64.whl
Algorithm Hash digest
SHA256 8790dc121f00d14782a5e0df3a4c1a6bb9c021054574708a1a659c8e7c7dd483
MD5 983515105b731fb7e6e632e7fe6959d9
BLAKE2b-256 e9b84d3effac826b0d7781ef975174703c0e7bb0620e34078ff5a48a185e96ed

See more details on using hashes here.

File details

Details for the file rafina-0.0.6-py312-none-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for rafina-0.0.6-py312-none-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 3c637ef527e3ecb3c3b6afc11fd013ca4d3c89075e00f6412c6037633baa4c83
MD5 6c5a58116ef96a93527d786715292f76
BLAKE2b-256 cc16e3059b577122c12bd68742f8d49559cb3e334703574043671db85b3ef5ff

See more details on using hashes here.

File details

Details for the file rafina-0.0.6-py311-none-win_amd64.whl.

File metadata

  • Download URL: rafina-0.0.6-py311-none-win_amd64.whl
  • Upload date:
  • Size: 3.3 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

Hashes for rafina-0.0.6-py311-none-win_amd64.whl
Algorithm Hash digest
SHA256 f81124c58e543d0132c43903fd70f973107458e4715662f7571f94092968755f
MD5 1d3c162a2cd37ad1a72215ef5641c3a4
BLAKE2b-256 07867fd7c1015776f7422082e6099a2a048447d1e662767c5db1b3aef3a1aa88

See more details on using hashes here.

File details

Details for the file rafina-0.0.6-py311-none-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for rafina-0.0.6-py311-none-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 dc9f0d4dc268f1606586e826356ff939b3b0e3f110c9ed4d7b4e4daf4731aaf6
MD5 abf61325acda09299be116bd10fc9606
BLAKE2b-256 26f129934dd3ab5982fd39c8df812d24e33f241a197da2abe89457b57554dbfb

See more details on using hashes here.

File details

Details for the file rafina-0.0.6-py310-none-win_amd64.whl.

File metadata

  • Download URL: rafina-0.0.6-py310-none-win_amd64.whl
  • Upload date:
  • Size: 3.3 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

Hashes for rafina-0.0.6-py310-none-win_amd64.whl
Algorithm Hash digest
SHA256 2379f114b5e4f102dc21681596b2409a0325fb71d4ed1bf1095454b0c70b5ecf
MD5 aa027f10fe5a28f088f5d838ecfcd70c
BLAKE2b-256 81c1d2c019d553a6ce1b8270c9fc349187512850b598b5e40347f820a0431d10

See more details on using hashes here.

File details

Details for the file rafina-0.0.6-py310-none-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for rafina-0.0.6-py310-none-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 b1a7874715ead9b6d383526ed0954d75855dc02600245e2e9b00c768507f007b
MD5 2d43c11be680dc21861d83fef05b6461
BLAKE2b-256 e7ed2133a601ebd7f84b9982bfad9b1124a4caaad878912bd8540eea46e19b7a

See more details on using hashes here.

File details

Details for the file rafina-0.0.6-py39-none-win_amd64.whl.

File metadata

  • Download URL: rafina-0.0.6-py39-none-win_amd64.whl
  • Upload date:
  • Size: 3.3 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

Hashes for rafina-0.0.6-py39-none-win_amd64.whl
Algorithm Hash digest
SHA256 66f18fe6b689bb180e804b526ba1b739a69032e39a0e6518b87cbb56862add5a
MD5 5740a33346e164bee92c9114a9a2de35
BLAKE2b-256 7d7f432c127fd6266ab7195ee04c4f0c239885eb346b9bf9af9520c30ca75bc3

See more details on using hashes here.

File details

Details for the file rafina-0.0.6-py39-none-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for rafina-0.0.6-py39-none-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 1f7edea08a8cd94194276d5afdf7b5b7184be7d251e2612041fee74b5fb3e443
MD5 c05f148333fd051f1d889effff2a3aa8
BLAKE2b-256 69e16d47a079c2fdf933ef176d80b0ce4bbea7444702e788971ebceb19935d5e

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