|
[Sponsors] |
March 14, 2003, 12:35 |
BCDEFW and attached fluid cells
|
#1 |
Guest
Posts: n/a
|
How is it possible to get the Star or Prostar cell number of the fluid cell, which is attached to the boundary number "IBP" in the subroutine bcdefw.f ?
|
|
March 16, 2003, 01:02 |
Re: BCDEFW and attached fluid cells
|
#2 |
Guest
Posts: n/a
|
Hi Joern,
Maybe this snippet of code from Adapco-Online could help: do 220 ib=1,nbp23 ip=lx(ib)/7 indx=mod(lx(ib),7) ibnd=lq(indx,ip) ibndp=iblmap(-ibnd) 220 continue Given a certain IB (IBP if passed thru IBLMAP; here it's ibndp), you can get IP with the help of the COMMON LX(IB). |
|
March 17, 2003, 04:51 |
Re: BCDEFW and attached fluid cells
|
#3 |
Guest
Posts: n/a
|
I had this type of coding in mind when I started but it is much easier:
IF(IREG.EQ.2) THEN WRITE(*,*) ' BCDEFW called for boundary ' , IBP , WRITE(*,*) ' BCDEFW called for Prostar CELL ' , IP , WRITE(*,*) ' BCDEFW called for Star CELL ' , IPSTAR , ENDIF IP and IPSTAR are already available in the subroutine. |
|
July 8, 2003, 19:24 |
Re: BCDEFW and attached fluid cells
|
#4 |
Guest
Posts: n/a
|
This doesn't work for baffles. IBP is always zero if you are on "side 2" of the baffle The only way round I could find was to write a Prostar subroutine to output a table (using graph registers) of fluid cell and boundary numbers. This table can then be read into BCDEFW and used to find the real IBP number from the IP number by lookup, when the IBP in the subroutine returns zero.
If anyone else has seen this problem or has other solutions I would be interested to know. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Documentation of class primitiveMesh attached | jaswi | OpenFOAM Running, Solving & CFD | 0 | November 4, 2008 03:02 |
coupling solid and fluid cells?? | kcg | Siemens | 4 | March 13, 2007 10:39 |
Grap Fluid Cells Just On One Side Of A Baffle | Tommy | Siemens | 0 | May 7, 2006 08:49 |
Shell cells to Fluid cells | Mahbub | Siemens | 1 | October 20, 2003 16:21 |
flying object with a ribbon attached | Dong | Main CFD Forum | 2 | November 5, 1999 18:37 |