USERD_get_nsided_conn.H
Go to the documentation of this file.00001
00002 int USERD_get_nsided_conn
00003 (
00004 int part_number,
00005 int *nsided_conn_array
00006 )
00007 {
00008 #ifdef ENSIGHTDEBUG
00009 Info << "Entering: USERD_get_nsided_conn"
00010 << ", part_number = " << part_number
00011 << endl
00012 << flush;
00013 #endif
00014 if (part_number == 1)
00015 {
00016 Info << "************* EEEEEEEEERRRRRRRRRRRRRRRRRR *************** " << endl << flush;
00017
00018 }
00019 else if (part_number < nPatches+2)
00020 {
00021
00022
00023
00024 label patchi = part_number - 2;
00025 const polyBoundaryMesh& bMesh = meshPtr->boundaryMesh();
00026
00027 label np = 0;
00028 forAll(bMesh[patchi], facei)
00029 {
00030 label nPoints = bMesh[patchi][facei].size();
00031 if ((nPoints != 3) && (nPoints != 4))
00032 {
00033 for(label i=0; i<nPoints; i++)
00034 {
00035 nsided_conn_array[np++] = bMesh[patchi][facei][i] + 1;
00036 }
00037 }
00038 }
00039 }
00040 else if (part_number == nPatches+2)
00041 {
00042 return Z_ERR;
00043 }
00044 #ifdef ENSIGHTDEBUG
00045 Info << "Exiting: USERD_get_nsided_conn" << endl
00046 << flush;
00047 #endif
00048 return Z_OK;
00049 }
Copyright © 2000-2009 OpenCFD Ltd