← Back to team overview

dolfin team mailing list archive

Discrete Initial Condition in Dolfin

 

Hi all,

Is it possible to define Discrete Initial Condition for a problem in
Dolfin. I am using C++ interface and I guess it should be possible
through usage of DiscreteFunction Class in Dolfin as far as I understood
from documentation. Is there any document or demo on how to do that??
The initial Condition I have is a uBlasVector which gives me initial
values on Vertices. another question is that if form file should be
changed when we use "u0" which is discrete?? u0 is now defined as :
"u0=Function(element);" in form.

Thanks,
Hatef