Presentation on theme: "MULTLAB FEM-UNICAMP UNICAMP SETTING PROPERTIES USING INFORM The use of In-Form is introduced by means of examples to the user get acquainted with the syntax."— Presentation transcript:
MULTLAB FEM-UNICAMP UNICAMP SETTING PROPERTIES USING INFORM The use of In-Form is introduced by means of examples to the user get acquainted with the syntax. This first section deals with the ways to set material properties using In-Form. A sequence of workshops present distinct features of In-Form for setting materials properties
MULTLAB FEM-UNICAMP UNICAMP WORKSHOP ON SETTING MATERIAL PROPERTIES USING INFORM All workshops are based on a single case: heat transfer in a cylindrical pipe whose parameters are described below: The pipe radius and length are 0.05m and 7.5m with 30x30 grid. The fluid is air using Ideal Gas Law (IMAT = 2). Consider the reference pressure and temperature of 10 5 Pa, 273K. The inlet velocity and temperature is 0.15m/s and 20C. The north wall is held at constant temperature of 100C. For a ‘rescue’ situation a q1 file of this case is available for download (wksh_if_prps1)wksh_if_prps1
MULTLAB FEM-UNICAMP UNICAMP Setting properties which vary in accordance with formulae coded in GXname files The problem is set up within VR by selecting material (2): “air as an Ideal Gas”. If the user inspect the PRPS file for IMAT =2 he will find for RHO1 and ENUL the entries GRND5 and GRND2. They set the properties in accordance with GREX files, i.e., fortran coded lines which perform as indicated below: RHO1=GRND5 selects density= RHO1B*(p1+PRESS0)/(t1+TEMP0) The gas constant is, 1/RHO1B ENUL= GRND2 set ENUL= ENULA + ENULB * t1 + ENULC * t1 ** 2. Inspect RESULT file and check the constants rho1a&b, enula,b&c. The whole problem could be set within q1 file declaring the constants rhoa&b as well as enula,b&c, also setting rho1=grnd5 and enul=grnd2. This is the so called ‘old fashion’ way to set up properties.
MULTLAB FEM-UNICAMP UNICAMP RESULTS WKSH_IF_PRPS(1) Contour plots of temperature, density and kinematic viscosity for future comparison purposes. The results come from a q1 file selecting material (2), no property formulae were inserted so far, just built in formulas. Go to slide (6). TEMPERATURE DENSITY ENUL
MULTLAB FEM-UNICAMP UNICAMP INFORM SETTINGS Properties are set by In-Form with the command PROPERTY: (PROPERTY of VAR at Patchname is Formula [with Optional] )PROPERTY of VAR at Patchname is Formula [with Optional] With is a limitation by IMAT, TIM, or other PIL variables. Also the IF conditional may be applied Example1: (PROPERTY of RHO1 at BLOCK1 is 5.2*TEM with IF(TIM >100)) Means that rho1 at patch name BLOCK1 is set by the formula above only for time greater than 100 Example2: (PROPERTY of RHO1 is 5.2*TEM with IMAT >100) Means that rho1 is set by the formula at the cells where imat >100, i.e., only for solid materials)
MULTLAB FEM-UNICAMP UNICAMP INFORM SETTINGS FOR WKSH_IF_PRPS(2) At group 9 insert the lines below: Inform9Begin REAL(EA,EB,EC) ! Declares three real constants EA= E-06 EB= E-08 EC= E-11 evaluate rho1 using Ideal Gas Law (PROPERTY RHO1 IS (P1+PRESS0)/(287*(TEM1+TEMP0))) evaluate enul as a function of the temperature (PROPERTY ENUL IS EA+EB*(TEM1+TEMP0)+EC*(TEM1+TEMP0)^2) (PROPERTY CP1 IS 1004) ! Sets specific heat thermal conductivity is transmitted thru PRNDTL(TEM1) in G9 Inform9End The statements Inform_Begin and Inform_End always start at the 3 rd column. You are asked to compare your results against the results on slide(4)slide(4) If you don’t succeed writing these lines, download wksh_if_prps(2)wksh_if_prps(2)
MULTLAB FEM-UNICAMP UNICAMP 2 nd WORKSHOP ON SETTING MATERIAL PROPERTIES USING INFORM The proposition now is to insert inside the pipe an obstruction like an orifice of material 198 (solid&friction). In order to do so, it will be used the command INITIAL to set the material aluminum at the correct position. (INIT[IAL] of Var [at PatchName] is Formula [with Options] )INIT[IAL] of Var [at PatchName] is Formula [with Options] sets a initialization of Var variable at region described by PATCH command with PatchName name by Formula calculated. Var is any 3D-stored variable. The "with Options" element contains options which specify the action of statement: INFOB_n IMAT=iprp IF(condition)
MULTLAB FEM-UNICAMP UNICAMP INFORM SETTINGS FOR WKSH_IF_PRPS(4) At group 7 insert STORE(PRPS) At group 11 insert the lines below: Inform11Begin define the patch where material 198 will be set in: PATCH(BLCK,VOLUME,1,1,NY/2,NY,NZ/6, NZ/6,1,1) set prps to material 198 (INITIAL OF PRPS AT BLCK IS 198) Inform11End Note: PATCH command allow definitions like fractions of the NZ, NY and NX. Their advantage lies on the independence of the number of cells in each direction. For this case, the patch will be always at half of NY cells and at 1/6 of NZ cells, no matter how large or small NY and NZ are.
MULTLAB FEM-UNICAMP UNICAMP RESULTS FOR WKSH_IF_PRPS(4) Compare your results against the velocity field after orifice. The relaxation setting must be adjusted from previous wksh. If you don’t succeed writing these lines, download wksh_if_prps(3) wksh_if_prps(3) As an alternative to, one could insert object directly from VR, download wksh_if_prps(4) to check it out.wksh_if_prps(4)
MULTLAB FEM-UNICAMP UNICAMP END OF THE PROPERTIES WORKSHOP