|
[Sponsors] |
August 6, 2008, 02:52 |
Load Mesh file to C++
|
#1 |
Guest
Posts: n/a
|
Hi How can i load Mesh file from Gambit to C++ ? with all Node,Element,Boundary !!!
|
|
August 6, 2008, 13:58 |
Re: Load Mesh file to C++
|
#2 |
Guest
Posts: n/a
|
save the mesh file in text format (in Gambit it is called nuetral format)
|
|
August 8, 2008, 13:28 |
Re: Load Mesh file to C++
|
#3 |
Guest
Posts: n/a
|
I know that, but my problem is: how can i read that with C++?? with what operation,function & how ???
|
|
August 11, 2008, 03:01 |
Re: Load Mesh file to C++
|
#4 |
Guest
Posts: n/a
|
You can use the C++ input stream cin or the usual C-functions.
|
|
August 11, 2008, 04:14 |
Re: Load Mesh file to C++
|
#5 |
Guest
Posts: n/a
|
can u explain it more ? i read it like this (C++): fstream infile("Grid.txt");
and after that i use two 'for' loop for X&y, but it didn't work !!! |
|
August 11, 2008, 04:18 |
Re: Load Mesh file to C++
|
#6 |
Guest
Posts: n/a
|
Try
ifstream infile("Grid.txt"); infile >> x; infile >> y; // etc. |
|
August 15, 2008, 08:29 |
Re: Load Mesh file to C++
|
#7 |
Guest
Posts: n/a
|
i found it but iused with
FILE* f; f=fopen("filename"; scanf(f,"r"); it's read one line ... |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
how to set periodic boundary conditions | Ganesh | FLUENT | 15 | November 18, 2020 07:09 |
2.0.x on Mac OSX | niklas | OpenFOAM Installation | 74 | March 28, 2012 17:46 |
ParaView Compilation | jakaranda | OpenFOAM Installation | 3 | October 27, 2008 12:46 |
DecomposePar links against liblamso0 with OpenMPI | jens_klostermann | OpenFOAM Bugs | 11 | June 28, 2007 18:51 |
Icemcfd 11: Loss of mesh from surface mesh option? | Joe | CFX | 2 | March 26, 2007 19:10 |