We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The divergence of the stress tensor is not 0 while the Navier-Cauchy operator is zero for the displacement vector.
Paste the command(s) you ran and the output. If there was a crash, please include the traceback here. from sympy import * from continuum_mechanics.vector import div_tensor from continuum_mechanics.solids import navier_cauchy r, theta, phi = symbols("r theta phi") T, mu = symbols("T mu") h = (1, r, r*sin(theta)) coords = (r, theta, phi) disp = Matrix([[0], [0], [T*sin(theta)/(8*pi*mu*r**2)]]) stress = Matrix([[0, 0, -3*T*sin(theta)/(8*pi*r**3)], [0, 0, 0], [-3*T*sin(theta)/(8*pi*r**3), 0, 0]])
And
navier_cauchy(disp, [1, mu], coords, h)
gives Matrix([[0], [0], [0]]), while
Matrix([[0], [0], [0]])
div_tensor(stress, coords, h)
gives Matrix([[0], [0], [3*T*sin(theta)/(8*pi*r**4)]]).
Matrix([[0], [0], [3*T*sin(theta)/(8*pi*r**4)]])
The text was updated successfully, but these errors were encountered:
nicoguaro
No branches or pull requests
Description
The divergence of the stress tensor is not 0 while the Navier-Cauchy operator is zero for the displacement vector.
What I Did
And
gives
Matrix([[0], [0], [0]])
, whilegives
Matrix([[0], [0], [3*T*sin(theta)/(8*pi*r**4)]])
.The text was updated successfully, but these errors were encountered: