Dear Lam,

There are a number of ways that you can do this. One approach would be to 
define a class that derives from the function class 
<https://www.dealii.org/developer/doxygen/deal.II/classFunction.html>; this 
is alluded to in step-8 
<https://www.dealii.org/developer/doxygen/deal.II/step_8.html#ElasticProblemassemble_system>,
 
but here the parameters are considered constant. For this approach you 
would need to describe the material parameters by position, rather than 
material_id. Alternatively you can just write your own function that takes 
in the cell as an argument and returns the material parameters.

I hope this help!
Regards,
Jean-Paul

On Wednesday, January 25, 2017 at 11:58:31 AM UTC+1, Lam DANG wrote:
>
> Dear All
>
> I want to add some heterogeneous parameters (for example heterogeneous 
> permeability which is varied on each cell by a function, etc...) on all 
> cells. Could you let me know how to deal it?
>
> PS: As I know in the step 28, cell->material_id() only can help to get the 
> parameters which were constant and stored before. Is this right?
>
> Thank you
>
> Lam DANG
>

-- 
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dealii+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to