← Back to team overview

dolfin team mailing list archive

[Question #127978]: User-defined function in a nonlinear problem

 

New question #127978 on DOLFIN:
https://answers.launchpad.net/dolfin/+question/127978

Hello

I want to solve a nonlinear PDE. In a variational formulation I have this nonlinear function of a trial function: a(u) = sgn(u)*pow(abs(u),n), where n doesn't have to be a natural number. I'd like to have this function even for negative values of u (and so I can't use simply pow(x,y)). How can I define such function?

In general, how do you define a " more complicated " function which takes as an argument Function object (e.g. piecewise linear or a function which can't be defined by simple use of pow, sin, cos...) ?

Thank you for any advice in advance
Vlado

-- 
You received this question notification because you are a member of
DOLFIN Team, which is an answer contact for DOLFIN.