Piecewise Function Question
Asked by
David Estrella
Hi Everyone,
I'm trying to write a piecewise function that is a bit different from the other questions here. The idea is that I have a function that is evaluated at each node, and I want to set all of the values that above a certain maximum to that maximum value. I'm trying something like this:
C is the TrialFunction of the pde
k=0.001
Smax=0.0143
def S():
return: S_prev+
class Sc(Exression):
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- DOLFIN Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- David Estrella
- Solved:
- Last query:
- Last reply:
This question was reopened
To post a message you must log in.