-
Notifications
You must be signed in to change notification settings - Fork 75
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
Labels
Comments
@considinefarm, the assembler of SolidsPy has an optional parameter ( 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) |
Thanks – I’ll give it a try.
From: Nicolás Guarín-Zapata <notifications@github.com>
Sent: Monday, May 18, 2020 4:49 PM
To: AppliedMechanics-EAFIT/SolidsPy <SolidsPy@noreply.github.com>
Cc: JOHN M CONSIDINE <john.considine@wisc.edu>; Mention <mention@noreply.github.com>
Subject: Re: [AppliedMechanics-EAFIT/SolidsPy] Orthotropy/Anisotropy as material choice (#21)
@considinefarm<https://github.com/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)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#21 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ABKFVLWAR6GKCMYSV6O7DS3RSGUNLANCNFSM4M725LAA>.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is it possible to add orthotropy/anisotropy stiffness tensor? I'm not sure how to include them, but would contribute with some guidance. #enhancement
The text was updated successfully, but these errors were encountered: