CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Main CFD Forum (https://www.cfd-online.com/Forums/main/)
-   -   Visualisation of results (https://www.cfd-online.com/Forums/main/62899-visualisation-results.html)

technocrat.prakash March 23, 2009 10:58

Visualisation of results
 
Hai Friends,

Presently I am doing a 2D-variable duct prblem. I have written codes in C and got the reults in text. Next I like to visualize the results in Paraview. But I dont know how to format the file to give as the input to the paraview.

I checked a lot of trainning manuals for the formatting of input file. I startesd with VTK file extension and lot of hard work I didn't get any useful results.

So I need your help to give some advice on the formatting of the input file. I want to see the velocity, pressure contour & stream traces.

I have attached the problem & the results. Help Me.

Thanks in advance.

RenardP March 23, 2009 14:19

Your grid is a structured one, if not, from what elements it is made (triangles, rectangles ....).

Can you use other visualisation tools like Matlab or Tecplot ?

Paul

NewtonKF March 23, 2009 14:56

Have you tried some free libraries from the net???

What is wrong with your export code for VTK??? I have already worked with that, but today I'm using tecplot... it is not easier to implement but has valuable features that other programs don't have...

If you need some help on your code, please post it in some public place to allow others to analyze it... I may help you if I can...

RenardP March 23, 2009 18:14

Search the net for VTK file formats, and use the legacy text format, this seems to be straightforward to implement if you know a bit of C++.

I suggest you to use the STRUCTURED_POINTS format this will map exactly your domain if you use 3 rectangles.

Let me know if you need further help,

Paul

technocrat.prakash March 23, 2009 22:38

Quote:

Originally Posted by RenardP (Post 210463)
Your grid is a structured one, if not, from what elements it is made (triangles, rectangles ....).

Can you use other visualisation tools like Matlab or Tecplot ?

Paul

I am using rectangular grids. Tried in MATLAB, but failed. I have no TECPLOT. Trial version of TECPLOT is not supporting my feature.

technocrat.prakash March 23, 2009 22:41

Quote:

Originally Posted by NewtonKF (Post 210468)
Have you tried some free libraries from the net???

What is wrong with your export code for VTK??? I have already worked with that, but today I'm using tecplot... it is not easier to implement but has valuable features that other programs don't have...

If you need some help on your code, please post it in some public place to allow others to analyze it... I may help you if I can...

Thanks. Presently I dont want to export my code there. What I needed is how to format my results.

I have attached my problem defnition and results.

technocrat.prakash March 23, 2009 22:43

Quote:

Originally Posted by RenardP (Post 210485)
Search the net for VTK file formats, and use the legacy text format, this seems to be straightforward to implement if you know a bit of C++.

I suggest you to use the STRUCTURED_POINTS format this will map exactly your domain if you use 3 rectangles.

Let me know if you need further help,

Paul

I am using rectangular elements (Control volume method uniform grids). I dont know C++.

Pls help in formatiing of my results into VTK format.

ztdep March 26, 2009 10:12

try visit
i like the data format of tecplot

technocrat.prakash March 26, 2009 12:28

I could not understand your words.

NewtonKF March 26, 2009 14:47

Visit is a program for visualization of results from numerical analysis: https://wci.llnl.gov/codes/visit/
I think, it works with the vtk file format...

RenardP March 26, 2009 14:48

Quote:

Originally Posted by technocrat.prakash (Post 210507)
I am using rectangular elements (Control volume method uniform grids). I dont know C++.

Pls help in formatiing of my results into VTK format.

You can use any programming language for writing a simple formated text file ( aka VTK format), if I understand correctly you know C, this will help you.

technocrat.prakash March 26, 2009 23:13

Quote:

Originally Posted by RenardP (Post 210973)
You can use any programming language for writing a simple formated text file ( aka VTK format), if I understand correctly you know C, this will help you.

I know C programming, but I dont know whats the format style of VTK

technocrat.prakash March 26, 2009 23:15

Quote:

Originally Posted by RenardP (Post 210973)
You can use any programming language for writing a simple formated text file ( aka VTK format), if I understand correctly you know C, this will help you.

I know C programming But I dont know the format style of VTK

technocrat.prakash March 26, 2009 23:16

Quote:

Originally Posted by NewtonKF (Post 210972)
Visit is a program for visualization of results from numerical analysis: https://wci.llnl.gov/codes/visit/
I think, it works with the vtk file format...

My actual problem I dont know how write/ create VTK file formt from my results in text document.

RenardP March 27, 2009 06:43

Quote:

Originally Posted by technocrat.prakash (Post 210990)
My actual problem I dont know how write/ create VTK file formt from my results in text document.

Do you know any programming languages ?
The VTK file format is described on the NET, just search after VTK file format on google. If you know any programming language you will be able to simple re-write your results in this format.

If you need specific help write me in private.


All times are GMT -4. The time now is 03:23.