Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A Python module that implements tools for the simulation and identification of random fields using the Karhunen-Loeve expansion representation.
Python
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
randomfields
.gitignore
1D_karhunen_loeve_identification_example.py
1D_karhunen_loeve_simulation_example.py
2D_karhunen_loeve_identification_example.py
2D_karhunen_loeve_simulation_example.py
README.md
setup.py

README.md

python-randomfields

A Python module that implements tools for the simulation and identification of random fields using the Karhunen-Loeve expansion representation.

Folder description

This folder contains:

  • a Python module named randomfields,

  • 4 Python scripts implementing basic examples, showing the ways the module functionalities can be used. NB: simulation scripts must be run before their corresponding identification counterpart because the simulation scripts generate input randomfield data (dumped to ascii file) for identification.

Requirements

The present Python module and its examples rely on:

  • OpenTURNS (>= 1.1)

  • Numpy (>= 1.6)

  • Scipy (>= 0.9)

  • Matplotlib (>= 1.0)

Installation

The example scripts can be run from this folder for testing. They'll import the randomfields module from the local folder.

In order to make the randomfields module installation systemwide, you may either:

  • copy the randomfields module (directory) in the "site-package" directory of your Python distribution (e.g. /usr/local/lib/python2.7/site-package). NB: You might need admin rights to do so.

  • append the parent directory of the randomfields module (directory) to your PYTHONPATH environment variable.

Documentation

The randomfields module uses Python docstrings. Use either "help(object)" in a classic Python shell or "object?" in an improved Python (IPython) shell.

Authors and terms of use

This module was implemented by Phimeca Engineering SA, EdF and Institut Navier (ENPC). It is shipped as is without any warranty of any kind.

Todo

Contributions are welcome.

  • Implement other Galerkin schemes such as the Haar wavelet Galerkin scheme proposed by Phoon et al. (2002). More advanced (smoother) wavelets could also be used.

  • Call for data: if you have any, please contribute, possibly along with an identification example.

  • Any other idea within the scope of the module is welcome!

References

Something went wrong with that request. Please try again.