|
[Sponsors] |
September 30, 2003, 10:29 |
How to specify a value on a this surface?
|
#1 |
Guest
Posts: n/a
|
I'd likt to specify some value on a thin surface inside a flow domain, hope it is possible. For example, temperature on the thin surface is fixed. I urgent need your guys help. Thanks
windhair1 |
|
September 30, 2003, 15:44 |
Re: How to specify a value on a this surface?
|
#2 |
Guest
Posts: n/a
|
define where you want to put data
|
|
October 1, 2003, 04:40 |
Re: How to specify a value on a this surface?
|
#3 |
Guest
Posts: n/a
|
The command file is like
>>CREATE PATC PATCH TYPE 'THIN SURFACE' PATCH NAME 'INTERWALL' BLOCK NAME 'FUELBLOCK' HIGH I PATCH LOCATION 17 17 1 40 1 1 END Add in USRSRC CALL IPALL('INTERWALL', '*', ......) DO 100 I = 1, NPT INODE = IPT(I) VARBCS(ISCA2, IPHASE, INODE) = 1.0 100 CONTINUE But the results show zero value of scalar2 in whole fluid domain. How to deal with it? Thanks |
|
October 9, 2003, 21:18 |
Re: How to specify a value on a this surface?
|
#4 |
Guest
Posts: n/a
|
First of all, you need to use USRBCS to access the VARBCS array (USRSRC is for setting SU and SP). If you are actually in USRBCS, you have to set the IUBCSF flag (see top of routine) to indicate whether the condition is constant, changing with iteration, or changing with timestep.
Secondly, how are you defining ISCA2? Accessing the scalar arrays is a bit tricky. Try something like: CALL GETVAR('USRBCS','SCAL ',ISCAL) CALL GETSCA('USER SCALAR2',IS2,CWORK) ISCA2 = ISCAL + IS2 - 1 CALL IPALL('INTERWALL', '*','PATCH', + 'CENTERS',IPT,NPT,CWORK,IWORK) DO I = 1, NPT INODE = IPT(I) VARBCS(ISCA2, IPHASE, INODE) = 1.0 ENDDO Note that scalar 1 is in the 0th position, which is why we subtract 1. Also note the two spaces in the 'SCAL ' string used by GETVAR. All var names in GETVAR are exactly 6 characters padded with spaces. If this is confusing, call the Pittsburgh CFX support line for a very detailed technical note on CFX-4 User FORTRAN written by some guy named Jeff. Hope this helps, Jeff |
|
October 10, 2003, 05:44 |
Re: How to specify a value on a this surface?
|
#5 |
Guest
Posts: n/a
|
Thanks, It works now. But I still need further help on this topic, refer to the following post.
http://www.cfd-online.com/Forum/cfx.cgi?read=6087 |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[ICEM] Problems with coedge curves and surfaces | tommymoose | ANSYS Meshing & Geometry | 6 | December 1, 2020 11:12 |
[Gmsh] Error : Self intersecting surface mesh, computing intersections & Error : Impossible | velan | OpenFOAM Meshing & Mesh Conversion | 3 | October 22, 2015 11:05 |
[Gmsh] Problem with Gmsh | nishant_hull | OpenFOAM Meshing & Mesh Conversion | 23 | August 5, 2015 02:09 |
[Gmsh] boundaries with gmshToFoam | ouafa | OpenFOAM Meshing & Mesh Conversion | 7 | May 21, 2010 12:43 |
CFX4.3 -build analysis form | Chie Min | CFX | 5 | July 12, 2001 23:19 |