elasticity module

This file is part of PyFrac.

Created by Haseeb Zia on Tue Dec 27 17:41:56 2016. Copyright (c) “ECOLE POLYTECHNIQUE FEDERALE DE LAUSANNE, Switzerland, Geo-Energy Laboratory”, 2016-2020. All rights reserved. See the LICENSE.TXT file for more details.

elasticity.get_Cij_Matrix(youngs_mod, nu)[source]
elasticity.load_TI_elasticity_matrix(Mesh, mat_prop, sim_prop)[source]

Create the elasticity matrix for transversely isotropic materials. It is under development and will be refactored soon.

Parameters
  • Mesh (object CartesianMesh) – – a mesh object describing the domain.

  • mat_prop (MaterialProperties) – – the MaterialProperties object giving the material properties.

  • sim_prop (SimulationProperties) – – the SimulationProperties object giving the numerical parameters to be used in the simulation.

Returns

– the elasticity matrix.

Return type

C (ndarray)

elasticity.load_elasticity_matrix(Mesh, EPrime)[source]

The function loads the elasticity matrix from the saved file. If the loaded matrix is not compatible with respect to the current mesh or plain strain modulus, the compatible matrix is computed and saved in a file. If the file is not found, the elasticity matrix is computed and saved in a file with the name ‘CMatrix’.

Parameters
  • Mesh (CartesianMesh) – – a mesh object describing the domain.

  • EPrime (float) – – plain strain modulus.

Returns

– the elasticity matrix.

Return type

C (ndarray)

elasticity.load_isotropic_elasticity_matrix(Mesh, Ep)[source]

Evaluate the elasticity matrix for the whole mesh. :param Mesh: – a mesh object describing the domain. :type Mesh: object CartesianMesh :param Ep: – plain strain modulus. :type Ep: float

Returns

– the elasticity matrix.

Return type

ndarray-float

class elasticity.load_isotropic_elasticity_matrix_toepliz(Mesh, Ep)[source]

Bases: object

reload(Mesh)[source]
elasticity.mapping_old_indexes(new_mesh, mesh, direction=None)[source]

Function to get the mapping of the indexes