dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #18577
Re: [Question #115298]: Output PVD with a different variable name
You should be able to do just that by renaming the field you are saving:
u.rename("T", "temperature");
--
Anders
On Mon, Jun 21, 2010 at 10:31:55AM -0000, Chris Richardson wrote:
> New question #115298 on DOLFIN:
> https://answers.launchpad.net/dolfin/+question/115298
>
>
> I want to save some output to a PVD file to view in Paraview, but with a "name" other than "U" (which seems to be the default).
> This is useful if you have more than one field to visualise.
>
> I have been changing the following lines in the VTU output using a text filter... but I was wondering if there is a better way?
>
> e.g. change
>
> <PointData Scalars="U">
> <DataArray type="Float32" Name="U" format="ascii">
>
> to
>
> <PointData Scalars="T">
> <DataArray type="Float32" Name="T" format="ascii">
>
> Thanks!
>
Attachment:
signature.asc
Description: Digital signature
Follow ups
References