|
[Sponsors] | |||||
|
|
|
#1 |
|
Guest
Posts: n/a
|
Hi How can i load Mesh file from Gambit to C++ ? with all Node,Element,Boundary !!!
|
|
|
||
|
|
|
#2 |
|
Guest
Posts: n/a
|
save the mesh file in text format (in Gambit it is called nuetral format)
|
|
|
||
|
|
|
#3 |
|
Guest
Posts: n/a
|
I know that, but my problem is: how can i read that with C++?? with what operation,function & how ???
|
|
|
||
|
|
|
#4 |
|
Guest
Posts: n/a
|
You can use the C++ input stream cin or the usual C-functions.
|
|
|
||
|
|
|
#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 !!! |
|
|
||
|
|
|
#6 |
|
Guest
Posts: n/a
|
Try
ifstream infile("Grid.txt"); infile >> x; infile >> y; // etc. |
|
|
||
|
|
|
#7 |
|
Guest
Posts: n/a
|
i found it but iused with
FILE* f; f=fopen("filename"; scanf(f,"r"); it's read one line ... |
|
|
||
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
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 |