pyxfem.solidmechanics.exact_solutions module
This file contains exact solutions to some classic pde problems
Use full to test convergence Created on Wed Feb 28 09:49:32 2024 @author: nchevaug
- class pyxfem.solidmechanics.exact_solutions.LaplacianCircularInclusionQuad(k1, k2, ri=0.4, re=np.float64(1.4142135623730951))[source]
Bases:
LaplacianGeneralCircular inclusion, with quadratic solution
u equal zero at re, source term ‘s = 1.’ is constant, 2 conductivity : k1 inside, k2 outside
- class pyxfem.solidmechanics.exact_solutions.LaplacianCircularInclusionQuintic(k1, k2, ri=0.4, re=np.float64(1.4142135623730951))[source]
Bases:
LaplacianGeneralCircular inclusion with order 5 displacement source (r-re)**3
- class pyxfem.solidmechanics.exact_solutions.LaplacianGeneral(lsfuncs=None, classifyer=None, filt=0, conductivity=None, source=None, BNDDefinition=None, DirichletBCs=None, NeumannBCs=None, exactSolution=None, exactGradient=None)[source]
Bases:
objectBase class for the definition of Laplacian type problem and its exact solution
- class pyxfem.solidmechanics.exact_solutions.LaplacianSquareHole(a=0.4)[source]
Bases:
LaplacianGeneralManufactured solution : square with a square hole
+–+ | | +–+
- class pyxfem.solidmechanics.exact_solutions.LinearElasticity2dCircularHoleInfiniteSpace(mat: LinearIsotropeElasticMaterial, r=0.5, p=1.0)[source]
Bases:
LinearElasticityExacSollinear Elasticity exact solution : hole in a plate
- class pyxfem.solidmechanics.exact_solutions.LinearElasticityExacSol[source]
Bases:
ABCBase class for exact solution of linear elasticity problems
- abstractmethod displacement(xy)[source]
Return the displacement at each point in the xy input array input array of float such as […, :] contain the x and y coordinate of the point. return an array of the sameshape containing the displacement at the input point
- class pyxfem.solidmechanics.exact_solutions.WilliamsExpansion(mat, A=None, B=None)[source]
Bases:
object- Exact field from williams expansion (crack tip is at (0,0), x axis aligned with the crack)
^ y | |
______o—> x crack
- pyxfem.solidmechanics.exact_solutions.elasticity_hole_in_plate(popUpGmsh=False)[source]
test exactSolutions.linearElasticity2dCircularHoleInfiniteSpace and plot it
- pyxfem.solidmechanics.exact_solutions.laplacian_inclusion(exactsolbuilder, popUpGmsh=False)[source]
plot exact solution for laplacien with 2 conductivities on a mesh
- class pyxfem.solidmechanics.exact_solutions.testAnaly(methodName='runTest')[source]
Bases:
TestCasetesting Analytical solutions
- testElasticityHoleInPlate(popUpGmsh=False)[source]
Compute max exact stress on mesh nodes and compare to ref value