Hi Kid,
It is a mayavi tensor visualization issue. In paraview I can see the Kij
different in each cell (with the mySample.mesh you sent previously).
The problem is, that in mayavi, tensors as a whole can be displayed only with
the following three modes: component, determinant, effective_stress. SfePy uses
effective_stress, which is zero for a diagonal tensor.
You can workaround that, for example, by computing the matrix norm of Kij
yourself and store that in the results file, maybe alongside the full Kij:
out['hc_norm'] = Struct(name='output_data', mode='cell',
data=nm.linalg.norm(hydraulic_conductivity,
axis=(2,3), keepdims=True))
BTW. you can select data to display, as:
view(is_scalar_bar=True, is_wireframe=True, is_3d=True,
only_names=['hc_norm'])
r.
On 01/09/2017 07:12 AM, Kid Guo wrote:
> Hi,
>
> This is the supplement.
> If I set
> 't22 = Term.new('dw_diffusion(m.k, q, p)', integral1, omega, m=m, q=q, p=p)
> and
> hydraulic_conductivity = ev('ev_integrate_mat.3.Omega(m.k, p)', m=m, mode=
> 'el_avg')',
> the output result is the m_k.png file.
> then
> if I set
> 't22 = Term.new('dw_diffusion(m2.k, q, p)', integral1, omega, m2=m2, q=q, p=p)
> *and*