|
[Sponsors] |
November 26, 2003, 07:14 |
Define scalar wall boundary by USRBCS?
|
#1 |
Guest
Posts: n/a
|
How can I define a user scalar boundary condition on the wall using USRBCS? I'm not totally understand the meaning of A, B and C. Can someone kindly do me a favour.
Thx. |
|
November 26, 2003, 08:31 |
Re: Define scalar wall boundary by USRBCS?
|
#2 |
Guest
Posts: n/a
|
Hi, I'm just been through the same problem myself. In my opinion it is a rather wierd way of working. As you will see in the code the equation is formed: AT + BQ = C, so if you want the scalar quantity at the wall to equal X, set A=1, B=0, C=X. If you want the scalar flux equal to Y set A = 0, B = 1, C=Y. You get the idea. You need to specify the scalar poointer as thus: e.g. CALL GETVAR('USRBCS','SCAL ',IVSCAL) CALL GETSCA('SCALAR NAME',ITSCAL,CWORK) ISCAL = IVSCAL - 1 + ITSCAL then in a loop: VARBCS(ISCAL,IPHS,INODE) = #Value
I hope that this helps a little. |
|
November 26, 2003, 09:00 |
Re: Define scalar wall boundary by USRBCS?
|
#3 |
Guest
Posts: n/a
|
Thanks, I got it.
For my problem, it will look like DO I = 1, NPT INODE = IPT(I) A(ISCAL, IPHASE, INODE) = 1.0 B(ISCAL, IPHASE, INODE) = 0.0 C(ISCAL, IPHASE, INODE) = 0.3 ENDDO this will define a value scalar on boundary. Right? |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Installing OF 1.6 on Mac OS X | gschaider | OpenFOAM Installation | 129 | June 19, 2010 10:23 |
[Gmsh] Import problem | ARC | OpenFOAM Meshing & Mesh Conversion | 0 | February 27, 2010 11:56 |
define a non-adiabatic wall boundary condition | Karl | Siemens | 2 | April 22, 2008 04:50 |
Deal with wall boundary with moving mesh by FVM? | aiya | Main CFD Forum | 6 | May 10, 2007 12:33 |
UDF FOR UNSTEADY TIME STEP | mayur | FLUENT | 3 | August 9, 2006 11:19 |