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

Uploaded Python 3.12Windows x86-64

rafina-0.0.7-py312-none-manylinux1_x86_64.whl (520.1 kB view details)

Uploaded Python 3.12

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

Uploaded Python 3.11Windows x86-64

rafina-0.0.7-py311-none-manylinux1_x86_64.whl (517.8 kB view details)

Uploaded Python 3.11

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

Uploaded Python 3.10Windows x86-64

rafina-0.0.7-py310-none-manylinux1_x86_64.whl (518.1 kB view details)

Uploaded Python 3.10

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

Uploaded Python 3.9Windows x86-64

rafina-0.0.7-py39-none-manylinux1_x86_64.whl (518.1 kB view details)

Uploaded Python 3.9

File details

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

File metadata

  • Download URL: rafina-0.0.7-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.7-py312-none-win_amd64.whl
Algorithm Hash digest
SHA256 fed6b856f5ec5e71d9a9c8135866550adb518a34ce4076cd1f26d957d2ce785e
MD5 cb3251fdc743971b47b063bb4a649c92
BLAKE2b-256 5293abc840edc4b1018d7d180371a90add0f99beb253f26168e1677e607e8555

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rafina-0.0.7-py312-none-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 7c7fc56f752f5f376d6e8bd404f68636978186bfb3222ba63d361a3d81e34b07
MD5 04589644dd6e5c6640ad361c2c556328
BLAKE2b-256 321a90f21ce3e4ceb5a356108dfb41aa70a0dbc32b0d85c83b6f0cd0014ee51c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rafina-0.0.7-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.7-py311-none-win_amd64.whl
Algorithm Hash digest
SHA256 954dba1aad2235a0bbc24a62c9c72ddff034b805baefc2889647699b2f923bf7
MD5 62bc20c1df13eda21c81b15d39147237
BLAKE2b-256 b95f8cd99f6640fc3a5a610d248db9c4f9ce71095eade9cc59e1a9b6bbb6fda2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rafina-0.0.7-py311-none-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 66ab86943d899280a2c629d7659e031723cfd93237033b5d3b7f9a941d82a3d7
MD5 513e917fe8e2a6315b68b0e937c9249c
BLAKE2b-256 e54af72003b68e5720b55d04b5949f41757584d05dd36fe479d48e78032287e6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rafina-0.0.7-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.7-py310-none-win_amd64.whl
Algorithm Hash digest
SHA256 e48bc7e6c55072c2119e8757b5a6b94b890832af84e9f8c2d5bd1d36e3cf19d3
MD5 acbab5b332ca9ce221670eee11682523
BLAKE2b-256 c44c72be0a9ba6b5d258ec3eb364c0f4c63e583ac77d68537fbcb182ee8d673c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rafina-0.0.7-py310-none-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 ffcb9e6ea6649096dad9bea12dd45fd7673c6748abd148c71fb14ecd701ef120
MD5 a7e61f7d62ac95304b0fe4689741b512
BLAKE2b-256 e546084d18de37ff8beece471782b6fb63c86ed9c7e61ebeaa239c05d23353ef

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rafina-0.0.7-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.7-py39-none-win_amd64.whl
Algorithm Hash digest
SHA256 405b8901c5b35582c3c2ccce5f437bc30253a9d4af6b2977d3b7d1e3eaff33cd
MD5 5ff821bf95039687135a98a7c5b17fc1
BLAKE2b-256 ff015374894c8b02b72e9f1fdb28fbaed36e4e297e6001488c674612f0202f5c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rafina-0.0.7-py39-none-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 5918f6983b62ac561bbae3dfb871a6d6fc36166ec40d10ae81aeeeddfa92591d
MD5 0fddd515120ab7512ada27a628a4d029
BLAKE2b-256 e038fd7b0c68ee506434d4e674a1cd25654669a2ce6b6b9c2dbfd951f0bdc563

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