CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   Main CFD Forum (http://www.cfd-online.com/Forums/main/)
-   -   write unstructured grid on cgns (http://www.cfd-online.com/Forums/main/76650-write-unstructured-grid-cgns.html)

manaliac June 1, 2010 03:52

write unstructured grid on cgns
 
Hello everyone,

Currently, I'm trying to create an unstructured grid:

I already have my ElementConnectivity set in a matrix A(num_zone,3,values) , where num_zone refers to the number of the zone (if there are many), 3 because I'm using a triangular element, and the values are the index of the three nodes whoch refers to each face.

So, I used a :

do i=1,num_zone
nbdyelem=0
n_start=1
n_end= values
call cg_section_write_f(index_file,index_base,index_zon e(i),ElementName,
TRI_3,n_start,n_end,nbdyelem,A(i,1,n_start-e_sofar),index_section,ier)
enddo

but It seems that I can't have the right values written in the ElementConnectivity; do you have and idea why?


All times are GMT -4. The time now is 05:37.