0
$\begingroup$
sr[r_] = A + B r^-2;(*stress function*)
c1 = 10;(*edge condition at a*)
a = 1;(*location of edge*)
sa = 10;(*stress on the edge r=a*)
Solve[{
`sr[a] == sa,
sr[0]!=\[Infinity]}, {A,B}] (*B should be zero and A should be sa*)

This is the code. It is a simple equation with 2 unknown constants A,B and 2 equations (edge conditions). The problem is that I know the solution, but i don't know how to program Solve function/equation, because of the inequality with infinity, solve returns an error (shown on the picture below).

enter image description here

$\endgroup$
2
  • 1
    $\begingroup$ You didn't show the inequality! $\endgroup$ Commented May 17, 2022 at 15:33
  • $\begingroup$ It is inside solve - one of the conditions is that stress sr[0] can't be infinity. So A + B/0^2 != infinity. The only way this is possible if B is zero, but mathetmatica only encounters problem of dividing with zero. $\endgroup$
    – U.Grammy
    Commented May 18, 2022 at 10:43

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.