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.

Slides:



Advertisements
Similar presentations
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.
Advertisements

MULTLAB FEM-UNICAMP UNICAMP SETTING SOURCES & BOUNDARY CONDITIONS USING VR Section 7 of TR326 describes Sources and B.C. 5n the form of object and its.
UNICAMP GENERAL PARTICLE TRACKING ALGORITHM Sources of Information : Phoenics Lecture: GENTRAGENTRA Workshop: GENTRAGENTRA GENTRA user guide: (html) or.
UNICAMP BOUNDARY CONDITIONS AND SOURCE TERMS Differential equations need to be supplemented by boundary conditions before they can be solved. The boundary.
MULTLAB FEM-UNICAMP UNICAMP EVALUATING RESIDUALS AND IMBALANCE FORCES BY INFORM Residuals These are imbalances (errors) in the finite-volume equations.
Lecture 15: Capillary motion
Chapter 2 Introduction to Heat Transfer
Convection.
MULTLAB FEM-UNICAMP UNICAMP LID DRIVEN CAVITY FLOW The lid-driven cavity problem has long been used a test or validation case for new codes or new solution.
Output - Derived Variables Derived Variables are quantities evaluated from the primitive (or solved) variables by PHOENICS. It means, PHOENICS first solve.
Introduction and Properties of Fluids
Temperature, Heat, and the First Law of Thermodynamics
UNICAMP THE HEIGHT OF LIQUID METHOD FOR FREE SURFACE FLOWS Flow simulations of real processes often involve fluids that are separated by a sharp interface.
MULTLAB FEM-UNICAMP UNICAMP SETTING STORAGE USING INFORM To get acquainted with the In-Form syntax it is introduced by means of examples. To begin with,
Flow over an Obstruction MECH 523 Applied Computational Fluid Dynamics Presented by Srinivasan C Rasipuram.
Engineering H191 - Drafting / CAD The Ohio State University Gateway Engineering Education Coalition Lab 4P. 1Autumn Quarter Transport Phenomena Lab 4.
Fluid Flow and Continuity Imagine that a fluid flows with a speed v 1 through a cylindrical pip of cross-sectional area A 1. If the pipe narrows to a cross-
Correlations for INTERNAL CONVECTION P M V Subbarao Associate Professor Mechanical Engineering Department IIT Delhi An Essential Part of Exchanging Heat……..
Fluid mechanics 3.1 – key points
Convection Prepared by: Nimesh Gajjar. CONVECTIVE HEAT TRANSFER Convection heat transfer involves fluid motion heat conduction The fluid motion enhances.
1 Gases Chapter Properties of Gases Expand to completely fill their container Take the Shape of their container Low Density –much less than solid.
Chapter 18 Temperature, Heat, and the First Law of Thermodynamics.
Chapter 10.  The three common phases of matter are solid, liquid, and gas.  A solid has a definite shape and size.  A liquid has a fixed volume but.
1 Gases Chapter Properties of Gases Expand to completely fill their container Take the Shape of their container Low Density –much less than solid.
Lecture 9 (1) Physics in Life Sciences Fluid flow in human body2.
Chapter 9 Fluid Mechanics.
Gases Which diagram represents a gas? Why? Phase of MatterParticlesShapeVolume SolidClose TogetherDefinite LiquidClose TogetherNot DefiniteDefinite.
Unit 5: Gases and Gas Laws. Kinetic Molecular Theory  Particles of matter are ALWAYS in motion  Volume of individual particles is  zero.  Collisions.
CHAPTER 4 ENERGY ANALYSIS OF CLOSED SYSTEMS
MULTLAB FEM-UNICAMP UNICAMP SETTING SOURCES & BOUNDARY CONDITIONS USING INFORM Section 3.7 of TR003 brings a set of examples in ‘sources and sinks’. A.
Copyright©2004 by Houghton Mifflin Company. All rights reserved. 1 Introductory Chemistry: A Foundation FIFTH EDITION by Steven S. Zumdahl University of.
Modeling of a continous casting process. Introduction The purpose of this model is to describe the transition from melt to solid in the flow in the continous.
Lesson 21 Laminar and Turbulent Flow
MULTLAB FEM-UNICAMP UNICAMP MATERIAL PROPERTIES Defining the material properties is quite important to set up a flow model. Strictly they specify the magnitude.
1 Fluid Models. 2 GasLiquid Fluids Computational Fluid Dynamics Airframe aerodynamics Propulsion systems Inlets / Nozzles Turbomachinery Combustion Ship.
MULTLAB FEM-UNICAMP UNICAMP SETTING SOURCES & BOUNDARY CONDITIONS USING VR Section 7 of TR326 describes Sources and B.C. 5n the form of object and its.
Chapter 9.1 Review Fluids. 1. What are the properties of a fluid? What states of matter are fluids?
Objectives Calculate heat transfer by all three modes Phase change Next class Apply Bernoulli equation to flow in a duct.
Properties of Pure Substances Chapter 3. Why do we need physical properties?  As we analyze thermodynamic systems we describe them using physical properties.
Chapter 9 Fluid Mechanics. Fluids “A nonsolid state of matter in which the atoms or molecules are free to move past each other, as in a gas or liquid.”
Fluid Resistance.
CBE 150A – Transport Spring Semester 2014 Radiation.
The Gas State and Kinetic Molecular Theory
Fluids. Introduction The 3 most common states of matter are: –Solid: fixed shape and size (fixed volume) –Liquid: takes the shape of the container and.
Convection: Internal Flow ( )
SPARTAN Chamber Dynamics Code Zoran Dragojlovic and Farrokh Najmabadi University of California in San Diego HAPL Meeting, June 20-21, 2005, Lawrence Livermore.
by Steven S. Zumdahl & Donald J. DeCoste University of Illinois Introductory Chemistry: A Foundation, 6 th Ed. Introductory Chemistry, 6 th Ed. Basic.
Chapter 16 MECHANISMS OF HEAT TRANSFER Copyright © 2012 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Fundamentals of.
Course 2 – Mathematical Tools and Unit Conversion Used in Thermodynamic Problem Solving.
Objectives Review: Heat Transfer Fluid Dynamics.
MULTLAB FEM-UNICAMP UNICAMP Extending the simulation capabilities of CFD codes The PHOENICS In-Form Facility Extending the simulation capabilities of CFD.
MULTLAB FEM-UNICAMP UNICAMP Workshop on Thermal Boundary Conditions Several thermal boundary conditions will be explored in this workshop modifying the.
Ch17 Temperature and Heat
Multiple Species Chapter 7. Training Manual May 15, 2001 Inventory # Objectives The FLOTRAN multiple species capabilities. Dilute mixture option.
Temperature and Heat Temperature & Scales Thermometry Thermal Expansion Heat and Internal Energy Heat Transfer Heat and Temperature Change, Specific.
Heat Transfer Introduction and Conduction. Conduction  If a temperature gradient exits in a continuous substance, heat can flow unaccompanied by any.
Dr.Salwa Al Saleh What is Temperature? AVERAGE It is the measurement of the AVERAGE kinetic energy of the particles of matter.
Flow of Compressible Fluids. Definition A compressible flow is a flow in which the fluid density ρ varies significantly within the flowfield. Therefore,
Physical Behavior of Matter Review. Matter is classified as a substance or a mixture of substances.
Heat Transfer by Convection
8.2 OBJECTIVES  Describe the appearance of laminar flow and turbulent flow  State the relationship used to compute the Reynolds number  Identify the.
Lesson 7: Thermal and Mechanical Element Math Models in Control Systems ET 438a Automatic Control Systems Technology 1lesson7et438a.pptx.
UNIT - 4 HEAT TRANSFER.
TEM – Lecture 2 Basic concepts of heat transfer:
Temperature, Heat, and the First Law of Thermodynamics
Chapter 7: Solid and Fluids
Fluid kinematics Chapter 3
Temperature, Heat, and the First Law of Thermodynamics
Chapter 19 FORCED CONVECTION
Chapter 19 FORCED CONVECTION
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. A sequence of workshops present two ways of setting materials properties This first way explores the VR Editor capabilities and the use of PROPS file The second way uses the In Form. There are other ways, usually employed in the past, but are still useful –> go to Properties-oldProperties-old

MULTLAB FEM-UNICAMP UNICAMP PROPERTY LIST PIL variable SI units nature RHO1 kg/m**3 first-phase density DRH1DP m**2/Newton proportionatechange with pressure RHO2 kg/m**3 second-phase density DRH2DP m**2/Newton proportionatechange with pressure ENUT m**2/s kinematic turbulent contribution to effective viscosity ENUL m**2/s kinematic laminar (reference) viscosity PRNDTL(indvar) > 0 dimensionless the Prandtl or Schmidt number PRNDTL(indvar) < 0 dimensionless or joules*degC/m if indvar is enthalpy or temperature PRNDTL(indvar) < 0 m**/s if indvar represents another scalar PHINT(indvar) according to indvar equilibrium interface value for the first phase PHINT(indvar) according to indvar equilibrium interface value for the second phase TMP1 degCelsius temperature when first-phase enthalpy is solved for TMP2 degCelsius temperature when second-phase enthalpy is solved for EL1 m first-phase turbulence length EL2 m second-phase turbulence length CP1 joule/(kg*degC) constant-pressure specific heat of phase 1 CP2 joule/(kg*degC) constant-pressure specific heat of phase 2 DVO1DT 1/degC proportionate change of first-phase specific volume (i.e. reciprocal of density) with temperature DVO2DT 1/degC proportionate change of second-phase specific volume (i.e. reciprocal of density) with temperature EMISS 1/m absorptivity = proportion of radiation which is absorbed per unit length SCATT 1/m proportion of radiation which is scattered per unit length

MULTLAB FEM-UNICAMP UNICAMP WORKSHOP ON SETTING MATERIAL PROPERTIES USING INFORM Two workshops are based on the 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. The q1 file of this case is available for download (wksh_if_prps1)wksh_if_prps1

MULTLAB FEM-UNICAMP UNICAMP WORKSHOP ON SETTING MATERIAL PROPERTIES USING PROPS file The PROPS file (stored at phoenics\d_earth directory) is where phoenics stores its properties lybrary. Lets inspect the PROPS file…PROPS One can edit the PROPS file as well as add new materials. If one adds a new material the IMAT range has to be obeyed: 0 – 59 – Gases – Liquids 100 – 197 – Solids The inconvenient is the fact that if you change computers you also have to move the edited PROPS file to the new computer

MULTLAB FEM-UNICAMP UNICAMP SETting PRoPertieS by selecting materials When one material fills the whole domain the following statement in the Q1-file suffices: SETPRPS (argument1, argument2) where: argument1 = 1 or 2, according to the phase in question, and argument2 is the reference index of the material in the PROPS file, IMAT, which appears between : brackets at the left-hand border of the file. PROPS IMAT

MULTLAB FEM-UNICAMP UNICAMP EXAMPLE: SETPRPS For example: SETPRPS(1,0) dictates that the properties will be those of atmospheric air, because that is the significance of IMAT=0. Likewise, SETPRPS(2,67) would set the second-phase fluid to be water with the properties pertaining to 20 degrees Celsius.

MULTLAB FEM-UNICAMP UNICAMP Setting properties which vary in accordance with formulae coded in GXname files The workshop 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)GRND5 The gas constant is, 1/RHO1B ENUL= GRND2 set ENUL= ENULA + ENULB * t1 + ENULC * t1 ** 2.GRND2 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 Example: 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 Application: INFORM SETTINGS FOR WKSH_IF_PRPS(2) ERASE: SETPRPS(1, 2) in Group 9 at the Q1 file 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