|
[Sponsors] |
April 11, 2008, 04:12 |
Sphere in Cube
|
#1 |
Guest
Posts: n/a
|
I am creating three dimensional cube with reactangular coordiate system and exactly at the center I want to creat sphere with spherical coordiate system. I can create them as and where I want but finally it given connectivity error, it shows some of the unconnected regions. Does anybody know about it. Thank you in advance.
Sameer |
|
April 12, 2008, 06:56 |
Re: Sphere in Cube
|
#2 |
Guest
Posts: n/a
|
cdel all
vdel all ctdel 4 20 ctab 2 flui 4 loca 10 sphere ! number of smoothing loops *set smoo 5 csys 1 ctype 1 vc3d -1 1 20 -1 1 20 -1 1 20 cset all cset subs gran -0.75 0.75 -0.75 0.75 -0.75 0.75 ctype 2 cmod cset live surf create cset news type 2 cdel cset cset news type 4 vcex 5 ,, cset ,,, norm -0.05 cset all live surf create cset news type 1 vset news cset cset add vset all cset subs type 5 cdel cset cset news type 5 vset news cset vmod vset 0.5 *defi noexec vset none vell 20 vset news cset vmod vset 0.5 *end *loop 0 smoo cset news flui vset news surf vell 200 cset subs gran -2 0.05 axis y view 1 0.5 1 cplo |
|
April 12, 2008, 13:51 |
Re: Sphere in Cube
|
#3 |
Guest
Posts: n/a
|
Dear Joern. Thanks a lot for your help. I do appreciate the time and consideration.
|
|
April 12, 2008, 20:55 |
Re: Sphere in Cube
|
#4 |
Guest
Posts: n/a
|
Dear Joern,
I experience little problem running this script. Can you please check the script again. I am very thankful for your kind help. I udestood most of the script. And finally it gives 'Connectivity' error. Thank you for your time and consideration. Regards, Sameer |
|
April 13, 2008, 14:24 |
Re: Sphere in Cube
|
#5 |
Guest
Posts: n/a
|
I moved the line "loca 10 sphere" to the top of the code. So coordinate system 10 was not active when it should be for the "vmod" command.
Just add a "csys 10" before the first "vmod vset 0.5" |
|
April 14, 2008, 00:23 |
Re: Sphere in Cube
|
#6 |
Guest
Posts: n/a
|
Dear Joern,
Thanks a lot for your help. Can you please check the following command lines. I am creating solid sphere exactly at the center of the cube which is filled of the water. I have all the commands. i can successfully create the cube and sphere inside it. But it gives connectivity erroe and shows two groups of cells. Please run the following script ctab 1 fluid 2 csys 1 ctype 1 vc3d -10 10 40 -10 10 40 -10 10 40 cset all cplot cset news gran -0.50 0.50 -0.50 0.50 -0.50 0.50 cplot ctab,2,solid,3,,2 ctname,2,solid cmod cset cplot crefine 5 5 5 cset 0 0 merg couple 1 cmod cset cplot cset news type 2 cplot live surf create cset news type 3 vcex 10,,cset,,,norm 0.05 cset news type 2 cplot cset news type 3 cdel cset cset news type 2 cplot live surf create cset news type 4 vset none vell 15 loca 10 sphere vset news cset vmod vset 1 cset news type 2 vell 200 cplot Can you please let me know how to remove this error of connectivity. And that will be all for my problem. Thanks Sameer. |
|
April 14, 2008, 06:50 |
Re: Sphere in Cube
|
#7 |
Guest
Posts: n/a
|
Coupling between fluid and solid cells is not allowed.
|
|
April 14, 2008, 13:45 |
Re: Sphere in Cube
|
#8 |
Guest
Posts: n/a
|
Then what is the best idea to proceed further. How do I remove that connectivity error. I went through manual and applied all the possible commands like Vmerge and all but still it shows error in that. I am clueless at this point of time. Thanks
Sameer |
|
April 21, 2008, 15:55 |
Re: Sphere in Cube
|
#9 |
Guest
Posts: n/a
|
Couples are not allowed between fluid and solid regions. So don't do the "crefine" for only the solid cells.
Run the macro without the crefine at all to see what you get and use some more cells for the initial block. |
|
April 24, 2008, 03:13 |
Re: Sphere in Cube
|
#10 |
Guest
Posts: n/a
|
Cell are sometimes left-handed after a vcextrude command. Just open the check-tool and use the option "right-handed". Then click on "fix left-handed".
Here is the complete macro: cdel all vdel all ctdel 4 20 ctab 2 flui 4 ! number of smoothing loops *set smoo 5 csys 1 ctype 1 vc3d -1 1 20 -1 1 20 -1 1 20 cset all cset subs gran -0.75 0.75 -0.75 0.75 -0.75 0.75 ctype 2 cmod cset live surf create cset news type 2 cdel cset cset news type 4 vcex 5 ,, cset ,,, norm -0.05 cset all live surf create cset news type 1 vset news cset cset add vset all cset subs type 5 cdel cset cset news type 5 vset news cset loca 10 sphere csys 10 vmod vset 0.5 *defi noexec vset none vell 20 vset news cset vmod vset 0.5 *end *loop 0 smoo cset news flui vset news surf vell 200 chec,all,0,righ,news,noli cflip,cset check,all cset all cset subs gran -2 0.05 axis y view 1 0.5 1 cplo |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Gambit help: Cube inside cube | Jack Martinez | FLUENT | 13 | August 11, 2010 07:29 |
Sphere in Cube | Sameer jaju | FLUENT | 2 | April 15, 2008 20:13 |
Which method is better for flow around a cube | Alper | Main CFD Forum | 2 | April 9, 2007 15:24 |
Cd of cube | Naga | FLUENT | 1 | November 25, 2004 15:33 |
Natural convection at a cube | Michael | Main CFD Forum | 6 | June 25, 1999 11:39 |