CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

Can you paint triangles?

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 15, 2000, 23:20
Default Can you paint triangles?
  #1
Nishikawa
Guest
 
Posts: n/a
Hello,

I have a triangular mesh. I want to color the triangles according to the values associated with the elements, such as cell-residuals. (So, for example, one triangle is blue, and another red indicating the values associated with each element. Yes, just like a contour plot, but element-wise)

Is there any plotting softwares that can do this? (Tecplot CANNOT do this.) Or maybe I have to write a code myself?????

Thank you,

Nishikawa
  Reply With Quote

Old   May 16, 2000, 17:59
Default Re: Can you paint triangles?
  #2
Carlos
Guest
 
Posts: n/a
Hi... Try to use MATLAB or MATHEMATICA softwara

Regards

Carlos Vilela
  Reply With Quote

Old   May 16, 2000, 22:02
Default Re: Can you paint triangles?
  #3
Nishikawa
Guest
 
Posts: n/a
Thanks. Well, it looks like I must write such a program myself.....
  Reply With Quote

Old   May 17, 2000, 04:35
Default Re: Can you paint triangles?
  #4
Mahesh Prakash
Guest
 
Posts: n/a
I am not sure whether there is any commercially available software doing this but your idea is really good.
  Reply With Quote

Old   May 17, 2000, 06:40
Default Re: Can you paint triangles?
  #5
Joern Beilke
Guest
 
Posts: n/a
Where is the problem?

Just store the data you want to use in the same way as the other postprozessing items.

So you can use the cell aspect ratio in the same way as the pressure or some residuals.
  Reply With Quote

Old   May 17, 2000, 07:19
Default Re: Can you paint triangles?
  #6
Nishikawa
Guest
 
Posts: n/a
The problem is that some quantities are stored at nodes but other quantities are stored in cells.

Usually, you give nodal values (such as pressure) to a plotting software. And the software will interpolate the values (typically piecewise linear), and produce a contour plot. That is why you need to transfer the data obtained by Finite-Volume Method (cell-averages) to the nodes by some extrapolation before you send the data to a plotter for visualization.

I use a cell-vertex scheme where I have many quantities associated with triangles, and I want to see, for example, which element has the largest cell-residual, the pattern of the cell-residuals (+ or -) over the mesh, or a certain integer quantity assigned in each element. I want to see these clearly, and so do not want to use any extrapolation to nodes. I do want to color the triangles.

  Reply With Quote

Old   May 17, 2000, 07:56
Default Re: Can you paint triangles?
  #7
Joern Beilke
Guest
 
Posts: n/a
At least Prostar (StarCD) and EnSight are able to work with cell and vertex based results.

Plotting the cell based data just does not look very smooth.

Also the plotting of the residual distribution seems to be a standard feature which should be available at most codes.
  Reply With Quote

Old   May 17, 2000, 17:48
Default Re: Can you paint triangles?
  #8
Ricardo Bonon
Guest
 
Posts: n/a
Hi Nishikawa,

The answer to your question is a software called MeshTV. It is a post-processing tool developed at the Lawrence Livermore National Laboratory, and it is capable of handling both node centered data and cell centered data. Besides this, when you make contour plots in it, you have the option to use a nodal average interpolation or an element average interpolation, which does exactly what you want (color triangles accordingly to the data associated with them).

MeshTV is a free software, and Iīve been using it on Linux and SGI. Itīs quite a powerfull program, you should try. Itīs available from this homepage http://www.llnl.gov/meshtv/

But you have one problem to use MeshTV. It reads data written in its own proprietary binary format called SILO. In the download page you will find a link to download the SILO library of functions to write data in SILO format both for C and FORTRAN. SILO has some sparse documentation, s you will have to hack a little bit to get your data on MeshTV.

Iīve written an application called asc2silo which converts ASCII files containing mesh and data info into SILO files. It can convert meshes stored in an specilly formated ASCII, and meshes generated by EasyMesh (a excellent 2D delaunay mesh generator). For the data info thereīs another ASCII file format, as simple as that for the mesh.

asc2silo has little (in fact no) documentation, so if you find it would be usefull I can send it to you, but you will have to hack on it.

Thatīs it.

Ricardo Bonon bonon@opp.com.br

  Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[ICEM] Importing a set of triangles into ICEM CFD rambabu ANSYS Meshing & Geometry 5 November 12, 2009 18:13
the volatilization after coating the paint Jay FLUENT 1 March 2, 2005 04:36
Modelling of Filter paper and paint coating Karthick FLUENT 0 June 8, 2004 08:14
Modelling of Filter paper and paint coating Karthick FLUENT 0 June 2, 2004 07:20
higher gauss Quadrature rule for triangles R.A.Khurram Main CFD Forum 1 September 27, 2001 14:39


All times are GMT -4. The time now is 02:57.