Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Orthotropy/Anisotropy as material choice #21

Open
considinefarm opened this issue May 13, 2020 · 2 comments
Open

Orthotropy/Anisotropy as material choice #21

considinefarm opened this issue May 13, 2020 · 2 comments

Comments

@considinefarm
Copy link

Is it possible to add orthotropy/anisotropy stiffness tensor? I'm not sure how to include them, but would contribute with some guidance. #enhancement

@nicoguaro
Copy link
Collaborator

@considinefarm, the assembler of SolidsPy has an optional parameter (uel) that allows you to pass a function (callable) that defines the local stiffness matrix. You could use this option to assemble elements with anisotropic materials.

In that case, you would a script like the following

import matplotlib.pyplot as plt
import numpy as np
import solidspy.preprocesor as pre
import solidspy.postprocesor as pos
import solidspy.assemutil as ass
import solidspy.solutil as sol

def aniso_el():
	"""Anisotropic element"""
	pass

nodes, mats, elements, loads = pre.readin(folder=folder)
DME, IBC , neq = ass.DME(nodes, elements)
KG = ass.assembler(elements, mats, nodes, neq, DME, uel=aniso_el)
RHSG = ass.loadasem(loads, IBC, neq)
UG = sol.static_sol(KG, RHSG)
UC = pos.complete_disp(IBC, nodes, UG)
E_nodes, S_nodes = pos.strain_nodes(nodes , elements, mats, UC)
pos.fields_plot(elements, nodes, UC, E_nodes=E_nodes, S_nodes=S_nodes)

@considinefarm
Copy link
Author

considinefarm commented May 20, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants