CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Special Topics > Mesh Generation & Pre-Processing

Boundary nodes in CGNS format

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 24, 2015, 00:32
Default Boundary nodes in CGNS format
  #1
Member
 
Join Date: Jul 2014
Posts: 31
Rep Power: 11
nba1942 is on a distinguished road
Hi, I am working on the code writing "boundary-node information" file through CGNS subroutines.

I had compiled lots of CGNS examples from "A User's Guide to CGNS", so now I know what is what about CGNS subroutines(at least about subroutines used in examples that I tried to compile).

But I still have no idea which subroutines I should use to get this thing work.

Here is what I want;

The program that reads up a grid file with several boundary conditions and writes out the boundary-node info., including the number of segments of a boundary condition and connectivities of nodes of which boundary elements consist.

For example, a boundary condition is assigned to a surface by a pre-processing program(eg. Pointwise or etc), and the program reads up the grid file. Then the program figures out "the number of segments of which elements consist" and "connectivities of nodes of elements". Then, the program writes out the information.

############################################
"the number of segments of far-field"
"connectivity 1(counter-clockwise)"
"connectivity 2(counter-clockwise)"
"connectivity 3(counter-clockwise)"
.
.
.
"the number of segments of solid-wall"
"connectivity 1(counter-clockwise)"
"connectivity 2(counter-clockwise)"
"connectivity 3(counter-clockwise)"
.
.
.
############################################

See fig1 & fig2. There are 2 boundary conditions, solid-wall and far-field.
For solid-wall, there are 2 elements consist of 5 segment, while for far-field, there are only 1 element consists of 3 segments. So, the file would be as below.

############################################
3
23 101 31
5
16 12 21
4 16 21
############################################

I can see that the subroutine "cg_boco_info_f" returns the number of boundary conditions and types of BCs, node index, etc. But I think "cg_boco_info_f" cannot give me information I need.

I need your advice on which subroutines I can use to get my program work for the mission.

I am waiting for any reply.

Thank you.
Attached Images
File Type: png fig1.png (10.4 KB, 3 views)
File Type: png fig2.png (5.6 KB, 3 views)
nba1942 is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Radiation in semi-transparent media with surface-to-surface model? mpeppels CFX 11 August 22, 2019 07:30
parallel support with CGNS format not yet implemented kirkrich SU2 3 January 18, 2013 15:39
CFX13 Post Periodic interface EtaEta CFX 7 December 8, 2011 17:15
RPM in Wind Turbine Pankaj CFX 9 November 23, 2009 04:05
CFX4.3 -build analysis form Chie Min CFX 5 July 12, 2001 23:19


All times are GMT -4. The time now is 00:25.