package
0.0.0-20250215161537-52257d049256
Repository: https://github.com/davidkleiven/gopf.git
Documentation: pkg.go.dev
# Functions
CalculateStrainEnergy calculates the strain energy according to the parameters given in he passed parameters.
CubicMaterial returns the elastic tensor for a cubic material, where c11, c12 and c44 are constants in the Voigt representation.
DisplacementMatrixElement returns the (m, n) element of the matrix needed to find the displacements.
Displacements calculates the fourier transformed displacements from a given body force.
Ellipsoid returns a voxel representation of an ellipsoid with half-axes given by a, b and c.
EnergyDensity calculates the strain energy.
FromFlatVoigt constructs the elasticity tensor from the voigt representation of it.
HomogeneousModulusEnergy returns the elastic energy from a.
Isotropic returns an elastic tensor.
NewEffectiveForceFromMisfit returns the effective force based on the elastic properties and the misfit strains.
NewRank4 returns a new rank4 tensor.
PerturbedForce returns the effective force for the first order perturbation arising from difference in the material properties.
RotationMatrix creates the rotation matrix corresponding to a rotation around the specified axis.
Shear modulus returns the shear modulus when the bulk modulus and poisson ratio is known.
Strain returns the fourier transformed strains calculated from the fourier transformed displacements.
# Structs
EffectiveForce is a type that is used to calculate an effective body force from a region of misfit strains.
Rank4 is a type used to represent a 3x3x3x3 tensor.
StrainEnergyInput is a struct that holds all parameters needed to calculate the strain energy.
# Interfaces
FourierTransform is a generic interface for a multidimensional FFT.
Rank4Tensor is an interface of entities that implementes an getter with four indices.