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.8-py313-none-win_amd64.whl (3.3 MB view details)

Uploaded Python 3.13Windows x86-64

rafina-0.0.8-py313-none-manylinux_2_28_x86_64.whl (524.1 kB view details)

Uploaded Python 3.13manylinux: glibc 2.28+ x86-64

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

Uploaded Python 3.12Windows x86-64

rafina-0.0.8-py312-none-manylinux_2_28_x86_64.whl (524.0 kB view details)

Uploaded Python 3.12manylinux: glibc 2.28+ x86-64

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

Uploaded Python 3.11Windows x86-64

rafina-0.0.8-py311-none-manylinux_2_28_x86_64.whl (521.1 kB view details)

Uploaded Python 3.11manylinux: glibc 2.28+ x86-64

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

Uploaded Python 3.10Windows x86-64

rafina-0.0.8-py310-none-manylinux_2_28_x86_64.whl (521.3 kB view details)

Uploaded Python 3.10manylinux: glibc 2.28+ x86-64

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

Uploaded Python 3.9Windows x86-64

rafina-0.0.8-py39-none-manylinux_2_28_x86_64.whl (521.3 kB view details)

Uploaded Python 3.9manylinux: glibc 2.28+ x86-64

File details

Details for the file rafina-0.0.8-py313-none-win_amd64.whl.

File metadata

  • Download URL: rafina-0.0.8-py313-none-win_amd64.whl
  • Upload date:
  • Size: 3.3 MB
  • Tags: Python 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for rafina-0.0.8-py313-none-win_amd64.whl
Algorithm Hash digest
SHA256 f0911aae04b810ce7838d92804a86189509c60b2a7a35241ab0a70d8234d63d9
MD5 c1cd55f5d67596aee575d00a19796e8a
BLAKE2b-256 afcb7a9e21d1158af1a47e08e5aba899c9e998e4b61d5dc9cacab5af01aee95f

See more details on using hashes here.

File details

Details for the file rafina-0.0.8-py313-none-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for rafina-0.0.8-py313-none-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 f80be79333097b6601c5345f09f91a4b5a7ff97bce14fc0fdd0f105dd5112d40
MD5 7bc2c09422c3a19c887abe8b430b4e88
BLAKE2b-256 2c6b013be6ac0ad69a4dfeadc0e49d1f1586ebd3abc4ccc93abcd89a7d61e4cd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rafina-0.0.8-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.2.0 CPython/3.12.10

File hashes

Hashes for rafina-0.0.8-py312-none-win_amd64.whl
Algorithm Hash digest
SHA256 c693a1cc3027ac81c597ef5c8305cb0a166cac902c84b78f68fe995d1c8a0f5d
MD5 02bb8693aa9f50b0d37d61975f7934dd
BLAKE2b-256 ee861806d8eaba2768f86cebe0c2c0356d2e92933b77e4f8983a72f2462403c9

See more details on using hashes here.

File details

Details for the file rafina-0.0.8-py312-none-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for rafina-0.0.8-py312-none-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 428b8c7f386e0014a9238867e1227b747cb71910e2a847644c86fda42c69b1c8
MD5 c4fb92b5127c611f9abad38549455028
BLAKE2b-256 92ae36a9ccf498fe24667646b3b0a67cfdbab1bdb6163b47271a677f8d819562

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rafina-0.0.8-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.2.0 CPython/3.12.10

File hashes

Hashes for rafina-0.0.8-py311-none-win_amd64.whl
Algorithm Hash digest
SHA256 4df50343902e05caf6ef1a42d41842c749fe35ffd4c5f7441a49900d05cb39a7
MD5 b51051f38a1e11601891ffe617141439
BLAKE2b-256 f6815228de0fb2d5739d1d08048d1f12e016e19832e9f8b00193be98d4f4207c

See more details on using hashes here.

File details

Details for the file rafina-0.0.8-py311-none-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for rafina-0.0.8-py311-none-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 a3e22a9281a4976093acc20122f4a8ca4df9af413cf2ab0af788faea81b197d1
MD5 c23f46d139dce51a078c40c38d7ee7cf
BLAKE2b-256 61d5e20c7f034bcd57493e3eaa6d40a1db9b9982c9e4c62cb42197c32889862a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rafina-0.0.8-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.2.0 CPython/3.12.10

File hashes

Hashes for rafina-0.0.8-py310-none-win_amd64.whl
Algorithm Hash digest
SHA256 5259b65677f38cc175005c467309737a1cfbc8beb42edc439430e5e1b8e5aee7
MD5 827112a9bb6cf67a852d1214b54b15fd
BLAKE2b-256 c4879b80016d676ce8ad3a7919a70ec31063f40f08d2f320d22045d3551e161d

See more details on using hashes here.

File details

Details for the file rafina-0.0.8-py310-none-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for rafina-0.0.8-py310-none-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 cbf47c410acf4d62bb0e96a357d9e3b10854fc5e8ea92bcdbb9c302d6cc0155b
MD5 a0646b5164defda32adc521c33583a04
BLAKE2b-256 b56713d8b54360cb200e6fae59773f2d4d408c9845cd28387e56717904746000

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rafina-0.0.8-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.2.0 CPython/3.12.10

File hashes

Hashes for rafina-0.0.8-py39-none-win_amd64.whl
Algorithm Hash digest
SHA256 276206a74e518ce6ddbc7bf1b85218d3db17c8443d7a05ea7f65478b022731f8
MD5 3eb0dbd927b3c9f21dea369c0664bb0f
BLAKE2b-256 9574d6366a4c8240ac5234b69bf0deaa68d70708f833b38175f79309d2aee14c

See more details on using hashes here.

File details

Details for the file rafina-0.0.8-py39-none-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for rafina-0.0.8-py39-none-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 d00b9d21c16e0b862e532b77f3eed60b0f2a4b95884ebdcccf3a7abdf2e5b6b2
MD5 05c5b0e60d3c35429588f44753b1d735
BLAKE2b-256 de65bbc18f501868aa10208ddcade556f5198f96ecbbe75aae228918d9ae5146

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