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

Uploaded Python 3.13Windows x86-64

rafina-0.0.9-py313-none-manylinux_2_28_x86_64.whl (749.2 kB view details)

Uploaded Python 3.13manylinux: glibc 2.28+ x86-64

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

Uploaded Python 3.12Windows x86-64

rafina-0.0.9-py312-none-manylinux_2_28_x86_64.whl (749.2 kB view details)

Uploaded Python 3.12manylinux: glibc 2.28+ x86-64

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

Uploaded Python 3.11Windows x86-64

rafina-0.0.9-py311-none-manylinux_2_28_x86_64.whl (746.2 kB view details)

Uploaded Python 3.11manylinux: glibc 2.28+ x86-64

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

Uploaded Python 3.10Windows x86-64

rafina-0.0.9-py310-none-manylinux_2_28_x86_64.whl (746.4 kB view details)

Uploaded Python 3.10manylinux: glibc 2.28+ x86-64

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

Uploaded Python 3.9Windows x86-64

rafina-0.0.9-py39-none-manylinux_2_28_x86_64.whl (746.4 kB view details)

Uploaded Python 3.9manylinux: glibc 2.28+ x86-64

File details

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

File metadata

  • Download URL: rafina-0.0.9-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.9-py313-none-win_amd64.whl
Algorithm Hash digest
SHA256 f4b9923e0ed8861c2b0c98def77962f4eb376d5d14ebad9efd5c6cd028013b6d
MD5 662093d5d4d7cbc93f283786799c05a7
BLAKE2b-256 111c0b390ba0033ff18514a5ab5c729a885e44a0bb250fe0db579fd099890046

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rafina-0.0.9-py313-none-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 bdabad0a503a4842048c84360e889d46c8096018a2ef601c33acd7e2acbdf769
MD5 17a595a401c7386b837f07e6e86b41b1
BLAKE2b-256 52e2dfc46fd092dafd6a92418db6a385a8693aba05d919c7d135d6765947cf85

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rafina-0.0.9-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.9-py312-none-win_amd64.whl
Algorithm Hash digest
SHA256 95e696ebd014406f1682e6e481e4e5a6a95853bb644f745d95a42b6699bcdb55
MD5 2f708ed3a0a3676e8e34006c205169cf
BLAKE2b-256 d99efbc0198f715710e7c8bddd8a063038cd2e213b5d3b475580f7a1937f642e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rafina-0.0.9-py312-none-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 c4b64bae3fc50136c8bdffe70d86a27d9beac14e119848f0e4b7ed824144572c
MD5 1e56041838b65c31af3e5d4e569ab348
BLAKE2b-256 4d3dc9c14da8dac75af29a55fbd114283af33d7c1a941a6101e8e30c9b3d42d6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rafina-0.0.9-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.9-py311-none-win_amd64.whl
Algorithm Hash digest
SHA256 9906206896a4b5d6dd694dd1502742289c37483f09cca8be302d59c3c6da94be
MD5 0164c91d6f1e909587d6713049c151e2
BLAKE2b-256 dfed6a747e281b0482c3c5594c2a64a88648d7c12de8e186a49dd8d141633014

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rafina-0.0.9-py311-none-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 1ffa31aecd7d52b14ad994c6eee1f53b90be6b47044c72eded75b3d2e36be939
MD5 7e0882bee52e75f9840ee83e1a1abba1
BLAKE2b-256 573d7fc22c2f00196dc1e17322d4a22208bc91e5194602889f87dcc81789f772

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rafina-0.0.9-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.9-py310-none-win_amd64.whl
Algorithm Hash digest
SHA256 12d97f5577dbad588cbf20e4a493e55fbefa79277de9fcf3aa11a43a994753f7
MD5 65a14fef34335e7fe1d861e7eb272dcc
BLAKE2b-256 2069fce722c6a0b4f5c747ae76abb800442c7f66902be7b0449c7fdd60faf748

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rafina-0.0.9-py310-none-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 1f07bb6c61d851debcab077178890e8396759f509ca398cab804bf8a947dce1a
MD5 16bcdc28fa31c614b43695ec011b17a8
BLAKE2b-256 959fa872ca82b1e6d9d8ac801741b9e93a97c622f72f303f1e645ad59edd0f0c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rafina-0.0.9-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.9-py39-none-win_amd64.whl
Algorithm Hash digest
SHA256 9ab115a7750a4414b38023da8aca64e6095b0988b7f8bdd01458d779b4b4a75a
MD5 7fa79e0a100aa2cbbbd845ea94b641ed
BLAKE2b-256 0f1beff34dccaefd5be6b818e2746019111a4b6862302dc90c0c4097ac3d897a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rafina-0.0.9-py39-none-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 6dab27ce3b3ae9e5e36aee67892517e4cde2434d3ee8ba202d24317355ab404c
MD5 04ba9478a8079e859a98916672453522
BLAKE2b-256 ac26f4fdd8bcfe53e33c2133d9a9e3eff5517ec5964db9df42ae87aeeb60ca7b

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