[Paraview] Paraview Vtu to Exodus. Single block, multi element?

Moreland, Kenneth kmorel at sandia.gov
Wed Jan 11 09:48:00 EST 2017


Andi,

I am having a really hard time trying to understand what it is you are asking. I’m not sure what it means to “make object id = tetrahedrarank.”

I am going to make another guess at what it is you really want to do. You have data (from an Exodus file) that has a single block. One of the cell arrays is named tetrahedrarank. All the values of tetrahedrarank are either 1 or 2. You want to have a data set that has two blocks. One block has all cells with tetrahedrarank = 1. The other block has all cells with tetrahedrarank = 2. The following are the instructions to do that.

1. After loading the Exodus data, run the “Merge Blocks” filter.
2. Run a “Threshold” filter on the merged blocks. Set the “Scalars” property to TetrahedraRank. Set both “Minimum” and “Maximum” to 1.
3. Select the Merge Blocks filter in the Pipeline Browser again and add a second “Threshold” filter. On this second Threshold filter set the “Scalars” property to TetrahedraRank and set both “Minimum” and “Maximum” to 2.
4. Select both Threshold filters in the pipeline browser and add the “Group Datasets” filter. That will give you a data set with two blocks corresponding to the cells with TetrahedraRank 1 or 2.

-Ken

From: Andi Hartarto [mailto:andi3173 at gmail.com]
Sent: Tuesday, January 10, 2017 6:26 PM
To: Moreland, Kenneth <kmorel at sandia.gov>
Cc: paraview at paraview.org
Subject: [EXTERNAL] Re: [Paraview] Paraview Vtu to Exodus. Single block, multi element?

Ken,

From your email, I did filters > alphabetical> calculator> properties> attribute mode from point to cell data > result array name to dummy > expression to 0 > apply > save data as exodus file > open saved exodus file. I still don't see the 2 element data fields?

I hope i didn't misunderstand anything or misphrase... The main idea is that as shown in kenneth1.png, i need my element blocks to be of 2 arrays not just 1. I can see its unnamed block id:5 but I want it to be following my tetrahedral rank which is 1 and 2. In kenneth2. There is a clear distinction of colors because i use my tetrahedral rank to color it. I don't know how to make my block id = tetrahedra rank.

so my problem is actually:
How do i make object id = tetrahedrarank > hopefully this makes 2 data arrays in element blocks.

Thank you,
Andi

On 10 January 2017 at 03:32, Moreland, Kenneth <kmorel at sandia.gov<mailto:kmorel at sandia.gov>> wrote:
Andi,

You said you need an output with multiple blocks, but your last comment, “I need 1 block data set with 2 or more element data inside it,” suggests that what you really need is to add a second field of data.

Try using the calculator to add that second field. Set the attribute mode to “Cell Data”, the “Result Array Name” to “Dummy”, and the Expression to 0. Now when you write that out to an Exodus file you should have two element data fields: the original tetrahedral rank and the Dummy field you created.

-Ken

From: ParaView [mailto:paraview-bounces at paraview.org<mailto:paraview-bounces at paraview.org>] On Behalf Of Andi Hartarto
Sent: Sunday, January 8, 2017 4:58 PM
To: paraview at paraview.org<mailto:paraview at paraview.org>
Subject: [EXTERNAL] [Paraview] Paraview Vtu to Exodus. Single block, multi element?

Hi all, i need help please.

Introduction:
My problem is that I need to convert a vtu file into an exodus formatted file that reads several element block data.
When I load my data in vtu, all i see is a white cubic block.
This block has 2 data arrays named tetrahedra rank and tetrahedra number. When I change my coloring to tetrahedra rank, I can see 2 colors red and blue coloring my block.

I want to save the vtu file into an exodus format file and load it to another software but the other software only shows me the output of colors if there are several element blocks.
 In my case, the vtu file converted to exodus has only 1 element block.
In paraview, I can go properties, add the variables of tetrahedra rank and then change coloring then i see what i want to see.
But in the software I am supposed to load the data, I can't do that.
Im supposed to make my exodus data into 2 or more element blocks and then load it in that software which makes the software goes "ok so there are various data ! lets color it".

I don't know what should i do to change my vtu file with cell data of tetrahedra rank clearly showing the 2 data sets into 2 element blocks.
I have tried to use edit> find data> extract selection > repeat for the next > group the data.
I get a multi block data set. It didn't work. I need 1 block data set with 2 or more element data inside it.

Please help,
Andi

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20170111/9c09238d/attachment.html>


More information about the ParaView mailing list