Hi Robert, 

Thank you for your answer.
I obtained cauchy stress and strain.
Best regards,

Takuo Fujita

2018年7月23日(月) 15:58 Robert Cimrman <cimrman3@ntc.zcu.cz>:
On 07/22/2018 03:41 PM, pyontaku14 wrote:
> Hi,
>
> I tried to output stress and strain of compare_elastic_materials.py.
> I edited the original to the attached.
> But stress and strain did not come out to vtk.
> Is there any way to output stress and strain of
> compare_elastic_materials.py?

Yes, there is one more thing to do - in solve_branch(), the post_process()
function nas to be passed to problem.solve() as follows:

         problem.solve(save_results=True, step_hook=store_top_u(out),
                       post_process_hook=problem.conf.post_process)

Then post_process() is called in every step, as expected.

r.

> Best regards,
>
> Takuo Fujita
>
>
> 2018年6月12日(火) 21:54 藤田 <fujikko@adagio.ocn.ne.jp>:
>
>> Hi Robert,
>>
>> Thank you for your answer.
>> I obtained vtk files.
>> Thank you,
>>
>> Takuo Fujita
>>
>> 2018年6月12日(火) 15:53 Robert Cimrman <cimrman3@ntc.zcu.cz>:
>>
>>> On 06/11/2018 03:51 PM, pyontaku14 . wrote:
>>>> Hi,
>>>>
>>>> Is there any way to output vtk or h5 of compare_elastic_materials.py?
>>>
>>> Sure, just change "save_results=False" to "save_results=True" in
>>> solve_branch(), line 150. You might also want to change
>>> problem.output_dir to
>>> different names in each run so that the results are not overwritten.
>>>
>>> r.
>>> _______________________________________________
>>> SfePy mailing list -- sfepy@python.org
>>> To unsubscribe send an email to sfepy-leave@python.org
>>> https://mail.python.org/mm3/mailman3/lists/sfepy.python.org/
>>>
>>
>
>
>
> _______________________________________________
> SfePy mailing list -- sfepy@python.org
> To unsubscribe send an email to sfepy-leave@python.org
> https://mail.python.org/mm3/mailman3/lists/sfepy.python.org/
>
_______________________________________________
SfePy mailing list -- sfepy@python.org
To unsubscribe send an email to sfepy-leave@python.org
https://mail.python.org/mm3/mailman3/lists/sfepy.python.org/