CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   CD-adapco (http://www.cfd-online.com/Forums/cd-adapco/)
-   -   how to change the number of cset and vset (http://www.cfd-online.com/Forums/cd-adapco/54914-how-change-number-cset-vset.html)

lenson October 7, 2005 04:57

how to change the number of cset and vset
 
I have a set of cells.Its' number ranges from 1~1000. Now.Because of (pre-processing software called gambit) model importing ,I need to transform the orginal cell set number from (1~1000)to (20001~21000).how can I do? another question is also similar . I want to change the VSET whose numbers is from 500 to 700. I must transform the original vset range to 20500~20700. how can I do?

concludely~ (Q1)change the CSET number(1~1000)to (20001~21000). (Q2)change the VSET number(500~700)to (20500~20700).

thanks for help~


Pauli October 7, 2005 10:18

Re: how to change the number of cset and vset
 
It sounds like you are importing a grid from Gambit. If so, why don't you enter the offsets during the import process (see the offset command).

If the grid is all ready in Prostar, you have two options. You can write the cells & vertices to a file & then read them back in with an offset - see cwri, vwri, crea & vrea commands (you can also do this from the Nav Center using Export Data->Export Grids then Create and Import Grids->Import Grids). Or you can use cgen & vren to make a copy of the cells & vertices with the desired offsets. The commands would look something like this:

cset news crange 1 1000 1 *set coff 2000 *get cnum ncse cgen,2,0,cset cset,news,crange,coff + 1,coff + cnum + 1 vren,disc,mxv,cset

Either way you'll end up with two copies of the cells & vertices. So you'll have to delete the originals.

cset news crange 1 1000 1 vset news cset cdel cset vdel vset

Be careful if this is a block embedded in some other grid. You don't want to delete adjoining vertices!!


bv October 10, 2005 06:16

Re: how to change the number of cset and vset
 
try Vgen command


lenson October 10, 2005 06:40

Re: how to change the number of cset and vset
 
thank you very much!!! the export&import command is good to use. thanks for help~



All times are GMT -4. The time now is 11:27.