[Gfs-users] Gerris Surfaces in Tecplot

111 views
Skip to first unread message

Vladimir Kolobov

unread,
Nov 15, 2011, 10:29:53 AM11/15/11
to GFS users discussion list
Stephane,

Following our recent discussion, we have implemented a capability to
write gerris surfaces
(either gts or implicit) into Tecplot files (see attached snapshot).

The call gfs_domain_write_tecplot_surface (domain, output->max_depth,
domain->variables_io,
output->precision, GFS_OUTPUT (event)->file->fp); can be placed after
gfs_domain_write_tecplot
or into a separate event.

Please let me know how to send you the source code.

Thanks,

Vladimir

gerris_tecplot_surface.gif

Stephane Popinet

unread,
Nov 15, 2011, 3:43:53 PM11/15/11
to GFS users discussion list
Hi Vladimir,

> The call gfs_domain_write_tecplot_surface (domain, output->max_depth,
> domain->variables_io,
> output->precision, GFS_OUTPUT (event)->file->fp); can be placed after
> gfs_domain_write_tecplot
> or into a separate event.
>
> Please let me know how to send you the source code.

Very nice. Ideally you should make a darcs patch including your code.
To do this:

% darcs get http://gerris.dalembert.upmc.fr/darcs/gerris-stable

- copy your changes to gerris-stable/src/...

% sh autogen.sh --prefix=.... && make && make install

- check that the changes work as expected

% darcs record
(be careful to check the changes you want to include at this stage and
give a description of the patch, see
http://gfs.sourceforge.net/wiki/index.php/Gerris_Changelog for
examples).

darcs will also ask for your "identity" at this stage, format it as e.g.

"Vladimir Kolobov <v...@cfdrc.com>"

This is important to keep track of where the change comes from.

% darcs send -o /tmp/patch

and attach /tmp/patch to your email reply.

cheers

Stephane

------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Gfs-users mailing list
Gfs-...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gfs-users

Vladimir Kolobov

unread,
Nov 15, 2011, 4:34:29 PM11/15/11
to GFS users discussion list
Stephane,

Please find the patch attached. If you decide to place it in a separate
case name, like "format=TecplotSurface", then you need to open the
header #if 0 block in gfs_domain_write_tecplot_surface. The resulting
file can then be visualized separately or loaded into the
"format=Tecplot" file.

Also attached is a test script (which however gives a g_assert error in
"allocate_vertices" for depth != -1).

Thanks,
Vladimir

On 11/15/2011 2:43 PM, Stephane Popinet wrote:
> Hi Vladimir,
>
>> The call gfs_domain_write_tecplot_surface (domain, output->max_depth,
>> domain->variables_io,
>> output->precision, GFS_OUTPUT (event)->file->fp); can be placed after
>> gfs_domain_write_tecplot
>> or into a separate event.
>>
>> Please let me know how to send you the source code.
> Very nice. Ideally you should make a darcs patch including your code.
> To do this:
>
> % darcs get http://gerris.dalembert.upmc.fr/darcs/gerris-stable
>
> - copy your changes to gerris-stable/src/...
>

> % sh autogen.sh --prefix=....&& make&& make install

test_unstructured_depth.gfs
patch

Stephane Popinet

unread,
Nov 15, 2011, 5:00:47 PM11/15/11
to GFS users discussion list
Hi Vladimir,

> Please find the patch attached.

Thanks for that, however the description of your patch at the moment reads:

Wed Nov 16 10:13:54 NZDT 2011 tot
* TecplotSurface

This is not good. Please re-read my previous reply then do.

% edit $HOME/.darcs/author and/or gerris-stable/_darcs/prefs/author
and put a properly formatted identity (i.e. not "tot")

% darcs unrecord

and select your patch and then redo:

% darcs record (with a better description than "TecplotSurface")
% darcs send ...

thanks

Vladimir Kolobov

unread,
Nov 15, 2011, 5:32:45 PM11/15/11
to GFS users discussion list
Stephane,

Please find attached a corrected patch.

Thanks,

Vladimir

patch

Vladimir Kolobov

unread,
Nov 16, 2011, 2:54:33 PM11/16/11
to GFS users discussion list
Stephane,

We have just confirmed that the Tecplot files that Gerris writes and the
new Gerris surface Tecplot files
can be opened in Paraview (see attached). Paraview is a very popular
visualization software and is
capable to load Tecplot files (for those who don't have Tecplot license)
among many other formats.

However, we were able to open Gerris (field) Tecplot files only when
using double quotes for
VARIABLES names. So,

VARIABLES = 'X', 'Y', 'Z'...

need to be double quoted:

VARIABLES = "X", "Y", "Z"...

For Tecplot, this does not matter and both formats work equally. Can we
change to this format in Gerris ?

Also, the surface Tecplot files need to be loaded separately from the
field Tecplot files into Paraview.
So it might be better to have a special format case, like
format=TecplotSurface, to write separate surface
Tecplot files.

Thanks,

Vladimir

gerris_Tecplot_in_Paraview.gif

Stephane Popinet

unread,
Nov 23, 2011, 12:29:09 AM11/23/11
to GFS users discussion list
Hi Vladimir,

> We have just confirmed that the Tecplot files that Gerris writes and the new
> Gerris surface Tecplot files
> can be opened in Paraview (see attached).

The latest version of Gerris includes your patch (with some minor
changes, very clean code, thank you).

> However, we were able to open Gerris (field) Tecplot files only when using
> double quotes for
> VARIABLES names. So,
>
> VARIABLES = 'X', 'Y', 'Z'...
>
> need to be double quoted:
>
> VARIABLES = "X", "Y", "Z"...

I have a patch changing to double quotes in my development branch. I
will push it for the next release.

> Also, the surface Tecplot files need to be loaded separately from the field
> Tecplot files into Paraview.
> So it might be better to have a special format case, like
> format=TecplotSurface, to write separate surface
> Tecplot files.

I haven't made this change.

cheers

Stephane

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure
contains a definitive record of customers, application performance,
security threats, fraudulent activity, and more. Splunk takes this
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d

Reply all
Reply to author
Forward
0 new messages