# Cell numbering convention

 User Name Remember Me Password
 Register Blogs Members List Search Today's Posts Mark Forums Read

 LinkBack Thread Tools Search this Thread Display Modes
 August 6, 2000, 06:47 Cell numbering convention #1 Hassaneen Guest   Posts: n/a Does any one know how to let STAR-CD number cells in X-direction instead of Y-direction (1,2,3,4...in X-D) Thanks

 August 6, 2000, 16:47 Re: Cell numbering convention #2 Tara Guest   Posts: n/a Hi Hassaneen, You can you the CDIR command to change the numbering scheme in terms of a local mesh direction. (page 3-18 of the User Guide). Once this is defined, you can use the RESTRUCTURE command to reorder the vertices of a given cell set.

 August 7, 2000, 05:23 Re: Cell numbering convention #3 Hassaneen Guest   Posts: n/a Please be more clear because that manual is not. How could I excute that command CDIR. Thanks =Ahmed=

 August 7, 2000, 08:49 Re: Cell numbering convention #4 Stephan Meyer Guest   Posts: n/a Hello, Ahmed, try HELP CDIR in the prostar command prompt. Stephan

 August 7, 2000, 12:50 Re: Cell numbering convention #5 Hassaneen Guest   Posts: n/a Stephan, this code will drive me crazy. I couldn't do it even with HELP CDIR. Do you have any suggestion. Thanks =Ahmed=

 August 7, 2000, 13:36 Re: Cell numbering convention #6 Hassaneen Guest   Posts: n/a Stephan, just now I changed the numbering of the Vertices but the Cells don't change accordingly.??

 August 9, 2000, 03:45 Re: Cell numbering convention #7 Stephan Meyer Guest   Posts: n/a Hello, Ahmed, You're right. I didn't manage to change the cell numbering, too. This is what I tried: vc3d,0,10,10,0,10,10,0,1,1 cset,all numb,vert,on numb,cell,on view,0,0,1 cplo creo,all,,,1,x,y creo,done y cplo This actually renumbers the cells, but not exactly like I wanted to. It looks a bit like rubik's cube. The first ten cells are in the lowest (seen in y-direction) row, but not numbered in x-direction. The commands cdir,1,122,133,123 rest,1,repl,defa,renu,101 only renumber the vertices. What You can do is write the cells and vertices to ascii-files and sort them with another program (e.g. write one Yourself in fortran or any other programming language). You need to do the following steps for this: 1.) write the vertices to a file: vwrite,star.vrt,0,all,,code see HELP VWRITE for the format of the file 2.) write the cells to a file: cwrite,star.cel,0,all,,all,code again see HELP CWRITE for the format of the file 3.) get the centroid coordinates of each cell from the two files You have written out 4.) sort them 5.) change the cell number in the cell file (e.g. in star.cel) 6.) read the cells back into prostar: cread,star.cel,0,all,,add,code,0,0 since You haven't changed the vertices, it's not necessary to do anything with them. I hope this helps. Maybe anyone else on this forum has a better idea??? Stephan

 August 9, 2000, 05:13 Re: Cell numbering convention #8 Hassaneen Guest   Posts: n/a Stephan, my friend: Some how I have got the cells numbered in the way I want. That was achieved by using the tut.cel and tut.vrt from their tutorial (tut13.1). They are using the same tech. you are explaining. Have you got any experience with moving grids in Piston engine simulation Stephan?? if yes, I have a question for you. Thanks =Ahmed=

 August 10, 2000, 13:26 Re: Cell numbering convention #9 Stephan Meyer Guest   Posts: n/a Hi, Ahmed I've done some simulations with moving grids, but not especially for pistons engines. Anyway, just ask Your question, I'll try to help, if I can. Stephan

 August 11, 2000, 03:40 Re: Cell numbering convention #10 Hassaneen Guest   Posts: n/a Dear Stephan, Thanks a lot for your help in changing the numbering order for the vertices. For the moving grid, I got my problem working now after a huge effort. Thank you again, I appreciate. Regards =Ahmed=

 August 14, 2000, 04:36 Re: Cell numbering convention #11 Hassaneen Guest   Posts: n/a Dear Stephan, By chance I've got the cells numbered the way we need it. That happen when I was trying to create a 2-D shell and then create a 3-D mesh from it. The code already numbered the cells in the X-direction. =Ahmed=

 Thread Tools Search this Thread Search this Thread: Advanced Search Display Modes Linear Mode

 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 OffTrackbacks are Off Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post [Technical] Cell numbering sega OpenFOAM Meshing & Mesh Conversion 1 April 20, 2010 12:32 Lionel S. Main CFD Forum 2 February 23, 2007 16:28 Jonas Larsson CFD-Wiki 5 May 29, 2006 10:45 roncresswell OpenFOAM Installation 3 December 6, 2005 06:01 chao Main CFD Forum 0 May 28, 2002 05:54

All times are GMT -4. The time now is 10:24.

 Contact Us - CFD Online - Privacy Statement - Top