FEAP User Forum

FEAP => nurbFEAP => Topic started by: resammc on April 07, 2017, 07:04:58 AM

Title: NURBFEAP Paraview output user-macro (NPVI)
Post by: resammc on April 07, 2017, 07:04:58 AM
Dear FEAP Users,

We have developed a user macro to create Paraview output for nurbfeap results, and we would like to share it with you.

Some features of the routine are:
A user manual is also provided which explains how to use the user macro.

We have tried to use and alter nurbfeap standard routines whenever it was possible. However, it should be noted that the user macro works independently and does not interfere with nurbfeap plot functions.

Feel free to download and adapt it to suit your needs.

Hope you find it of help!

Resam

update 07.04.2017: an error in addressing npvi.h in subroutines was fixed.
update 03.07.2017: fixed a problem in defining the xl array (see replies #3 and#4 below) (for v.8.4 only. v8.5 users use the files at Reply #7 (http://feap.berkeley.edu/forum/index.php?topic=1542.msg6192#msg6192) below)
update 27.10.2017: fixed an error when using different types of elements in a single problem (download: rev.1.2 (http://feap.berkeley.edu/forum/index.php?topic=1542.msg6831#msg6831))
update 03.03.2018: major update - download: rev.1.3 (http://feap.berkeley.edu/forum/index.php?topic=1542.msg7567#msg7567)
update 14.07.2020: Version 1.4 (http://feap.berkeley.edu/forum/index.php?topic=1542.msg9909#msg9909)

Title: Re: NURBFEAP Paraview output user-macro (NPVI)
Post by: FEAP_Admin on April 07, 2017, 10:29:30 AM
Resam,  Thanks for sharing this with everyone.
Title: Re: NURBFEAP Paraview output user-macro (NPVI)
Post by: leeyongjae89 on April 10, 2017, 09:24:48 AM
Thank you so much for the sharing!
Title: Re: NURBFEAP Paraview output user-macro (NPVI)
Post by: Axuni on July 03, 2017, 04:41:55 AM
Hi Resam,

thanks a lot for the contribution. I started testing it and it looks great. But it seems that there was a small bug in the definition of the array "xl8" in the subroutine "pmsh_quad_nusd". Originally defined as "xl8(3,8)" I think it should be "xl8(3,20)", as it should be defined for a quadratic element. I tried the latter with good results.

Axuni
Title: Re: NURBFEAP Paraview output user-macro (NPVI)
Post by: Prof. R.L. Taylor on July 03, 2017, 07:30:14 AM
A similar problem exists in the pmsh_quad_lgrn_nusd.f -- should be xl8(3,27) there.

USERS of ver8.5 NOTE:  It is necessary to modify uparaview_nurb.f to add the argument for the array ip(0:numnp), add 'strnum.h' and delete argument istv.  Also dimension the stress and history arrays to numnm not numnp -- see routine p_paraview.f for details on modifications.
Title: Re: NURBFEAP Paraview output user-macro (NPVI)
Post by: FEAP_Admin on July 03, 2017, 08:14:22 AM
The currently available version of ver 8.5 (rev 8.5.2d) has the necessary edits for the paraview output to work with igafeap.
Title: Re: NURBFEAP Paraview output user-macro (NPVI)
Post by: resammc on July 03, 2017, 08:56:52 AM
Dear Axuni, Professor Taylor, FEAP Admin,

Thank you very much for checking the routine. I modified the files in the first post based on your suggestions.

Many thanks and kind regards,

Resam
Title: Re: NURBFEAP Paraview output user-macro (NPVI)
Post by: Prof. R.L. Taylor on July 03, 2017, 09:36:19 AM
Atrtached are updated NPVI files for ver 8.5 (latest release only)
Title: Re: NURBFEAP Paraview output user-macro (NPVI)
Post by: resammc on July 03, 2017, 09:58:55 AM
Thank you very much Professor Taylor for the v8.5 updated files. I also added a note in the first post, for v8.5 users, referring to your post.
Title: Re: NURBFEAP Paraview output user-macro (NPVI)
Post by: resammc on October 27, 2017, 12:32:06 AM
There was a problem with the element types (when more than one type of element is used in the problem, e.g. in the 'joint' example in ifeap) which is now fixed.

Attached are the files for FEAP84 and FEAP85.

RM
Title: Re: NURBFEAP Paraview output user-macro (NPVI)
Post by: resammc on March 03, 2018, 12:46:58 AM
Rev. 1.3:

FEAP85 - major update:
- there was a problem with stress/strain projection rotuines (igafeap) which is fixed now
- most of the routines are re-written (*_new.f files) based on igafeap plot routines. The performance (and stability) has increased significantly.
- more bug fixes

FEAP84 - minor update:
- an error in ix_quad array dimension (pstr_quad_nusd.f) is fixed now

Best,

Resam

Edit (05.03.2018): the files are re-uploaded.
Title: Re: NURBFEAP Paraview output user-macro (NPVI)
Post by: Axuni on March 06, 2018, 12:12:50 AM
Thanks for the update Resam!
Title: Re: NURBFEAP Paraview output user-macro (NPVI)
Post by: resammc on July 14, 2020, 11:37:20 AM
Rev. 1.4 (14 July 2020)

FEAP 8.4
- added `npvi,comp` to generate a Python script to compress the created VTU files
- bug fixes

FEAP 8.5
- post-processing of NURBS meshes using the so-called Bézier elements in Paraview ( `npvi,[ ],4` )
- added `npvi,comp` to generate a Python script to compress the created VTU files
- bug fixes

FEAP 8.6
The same as FEAP 8.5 (+ added support for FEAP 8.6)

Download link
Starting from this version, we have decided to use Zenodo and Github to maintain the code:
Zenodo: https://zenodo.org/record/3945131
Github: https://github.com/resammc/NPVI_ADDON
DOI: 10.5281/zenodo.3945132
The current archive file is attached to this post as well.

Acknowledgment
We would like to thank users Axuni (http://feap.berkeley.edu/forum/index.php?action=profile;u=644) and alina.i (http://feap.berkeley.edu/forum/index.php?action=profile;u=1312) for reporting bugs and suggesting the fixes, as well as testing the new features. Their help is greatly appreciated.

Instructions

Best,
Resam
Title: Re: NURBFEAP Paraview output user-macro (NPVI)
Post by: Prof. S. Govindjee on July 14, 2020, 01:53:50 PM
Thanks for the update to v8.6!
Title: Re: NURBFEAP Paraview output user-macro (NPVI)
Post by: Axuni on July 17, 2020, 07:34:43 AM
Nice job Resam!
Thanks!
Title: Re: NURBFEAP Paraview output user-macro (NPVI)
Post by: 1user on July 17, 2020, 03:18:51 PM
Thank you, Resam!! It looks really nice!

Best regards,
i.alina