Hi Rahemi,

It sounds like you want the Functions::ParsedFunction and FunctionParser classes. This allows you to write functions in a parameter file which can then be evaluated at run time, for example at the quadrature points. This can handle vector valued functions too.

The use is covered in step-34
http://www.dealii.org/developer/doxygen/deal.II/step_34.html

and the classes
http://www.dealii.org/developer/doxygen/deal.II/classFunctionParser.html
http://www.dealii.org/developer/doxygen/deal.II/classFunctions_1_1ParsedFunction.html

John

On 01/05/12 22:12, Hadi Rahemi wrote:
Hi,

I am using step-44 as base for my elasticity problem and I need define material constants (using a class or template) as a function of global position. Is there anyway to use ParameterHandler to use interpolated value of these constants (i.e at each quadrature point) during the run-time? In other words I want the elasticity tensor to have different values in each quadrature point.

Hadi Rahemi
--
Ph.D. Candidate,
Department of Biomedical Physiology and Kinesiology,
Simon Fraser Unniversity, 8888 University Drive,
Burnaby, BC, V5A 1S6.



_______________________________________________
dealii mailing list http://poisson.dealii.org/mailman/listinfo/dealii
_______________________________________________
dealii mailing list http://poisson.dealii.org/mailman/listinfo/dealii

Reply via email to