Hi Kathrin,
On 03/12/2017 08:04 PM, kathrinsbriefkasten via sfepy-devel wrote:
> Hi Robert,
>
> thank you for the answer.
>
> The definition of different values for the traction in a function works. As
> I found in the documentation the length of `coor` corresponds to the
> quadrature points. Did I understand that correctly?
Yes, the quadrature points in all physical elements.
> My problem is that I have values for each facet (triangle) or node but not
> for the quadrature points. Is there a function to map values from
> facets/nodes to quadrature points?
You could proceed as follows:
1. define a variable of the 'parameter field' kind, with the linear Lagrange basis.
2. set its DOFs to your nodal values.
3. proceed as in [1] - use ev_volume_integrate term to interpolate the values
into QP. Make sure to use the same integral as in your equations, to have the
same quadrature points.
Does it help, or do you need more details? In the latter case, send me your
example script, so that I could run it.
r.
[2]
http://sfepy.org/doc-devel/examples/diffusion/poisson_field_dependent_material.html