MULTLAB FEM-UNICAMP UNICAMP MATERIAL PROPERTIES Defining the material properties is quite important to set up a flow model. Strictly they specify the magnitude.

Slides:



Advertisements
Similar presentations
The Kinetic Theory of Gases
Advertisements

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.
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.
As close to chemistry as we can get
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
Lecture# 9 MASS AND ENERGY ANALYSIS OF CONTROL VOLUMES
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.
Temperature, Heat, and the First Law of Thermodynamics
2003 International Congress of Refrigeration, Washington, D.C., August 17-22, 2003 CFD Modeling of Heat and Moisture Transfer on a 2-D Model of a Beef.
Heat transfer in boilers
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,
Chapter 1: Introduction and Basic Concepts
Chapter 5 The First Law of Thermodynamics
© Fluent Inc. 8/10/2015G1 Fluids Review TRN Heat Transfer.
General Formulation - A Turbojet Engine
* Reading Assignments:
L 17 - Thermodynamics [2] Today’s topics –Practical thermal effects –Devices for temperature measurement –Mechanisms of heat transfer Science dealing.
Chapter 7: Energy and Chemical Change
Chapter 10 Heat Transfer Introduction to CFX.
Copyright © 2010 Pearson Education, Inc. Lecture Outline Chapter 16 Physics, 4 th Edition James S. Walker.
Introduction to Heat Transfer
Temperature, Heat, and Expansion
Chapter 13 Section 1 Temperature Objectives
Chapter 18 Temperature, Heat, and the First Law of Thermodynamics.
Energy and Heat Transfer. Objectives Comprehend Forms of energy Energy conversion Heat transfer processes Principles of operation of various heat exchangers.
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.
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.
Constant-Volume Gas Thermometer
T. K. Ng, HKUST Lecture I: (1) Introduction to fluids. (2) Zeroth and first law of thermodynamics.
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.
Copyright © by Holt, Rinehart and Winston. All rights reserved. ResourcesChapter menu Heat and Temperature Chapter 13 Table of Contents Section 1 Temperature.
Thermodynamics. Thermodynamics is the branch of Physics that deals with the conversion of heat into other forms of energy, or other forms of energy into.
States of matter Solid: Liquid Gas Plasma Fluid: Crystalline Amorphous.
CBE 150A – Transport Spring Semester 2014 Radiation.
Lecture 2: Energy in the Atmosphere Vertical structure of the static atmosphere Basics from physics: force, work, heat Transferring energy in the atmosphere.
Chapter 7 Energy and Energy Balance By : Mrs. Norazian Mohamed Noor
Nazaruddin Sinaga Laboratorium Efisiensi dan Konservasi Energi Fakultas Teknik Universitas Diponegoro.
Chapter 16 MECHANISMS OF HEAT TRANSFER Copyright © 2012 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Fundamentals of.
Pressure – Volume – Temperature Relationship of Pure Fluids.
Compressible Frictional Flow Past Wings P M V Subbarao Professor Mechanical Engineering Department I I T Delhi A Small and Significant Region of Curse.
MULTLAB FEM-UNICAMP UNICAMP Extending the simulation capabilities of CFD codes The PHOENICS In-Form Facility Extending the simulation capabilities of CFD.
INTRODUCTION TO CONVECTION
MULTLAB FEM-UNICAMP UNICAMP Workshop on Thermal Boundary Conditions Several thermal boundary conditions will be explored in this workshop modifying the.
Thermal Energy. Warm Up: To shape metal into a horseshoe, the metal is heated in a fire. Why will a horseshoe bend when it’s very hot, but not after it.
Multiple Species Chapter 7. Training Manual May 15, 2001 Inventory # Objectives The FLOTRAN multiple species capabilities. Dilute mixture option.
Heat Transfer Introduction and Conduction. Conduction  If a temperature gradient exits in a continuous substance, heat can flow unaccompanied by any.
Flow of Compressible Fluids. Definition A compressible flow is a flow in which the fluid density ρ varies significantly within the flowfield. Therefore,
Heat Transfer Su Yongkang School of Mechanical Engineering # 1 HEAT TRANSFER CHAPTER 6 Introduction to convection.
Heat Transfer Su Yongkang School of Mechanical Engineering # 1 HEAT TRANSFER CHAPTER 7 External flow.
CONVECTION : An Activity at Solid Boundary P M V Subbarao Associate Professor Mechanical Engineering Department IIT Delhi Identify and Compute Gradients.
Heat. Nature of Heat Heat is the transfer of energy (every in transit) from one body to another due to the temperature difference between the two bodies.
Heat transfer mechanism Dhivagar R Lecture 1 1. MECHANISMS OF HEAT TRANSFER Heat can be transferred in three different ways: conduction, convection, and.
In this chapter you will:  Learn how temperature relates to the potential and kinetic energies of atoms and molecules.  Distinguish heat from work. 
Chapter 1: Introduction and Basic Concepts
Workshop 6 Electronics Cooling with Natural Convection and Radiation
Workshop 7 Tank Flushing
and Statistical Physics
UNIT - 4 HEAT TRANSFER.
TEM – Lecture 2 Basic concepts of heat transfer:
Temperature, Heat, and the First Law of Thermodynamics
Dimensional Analysis in Mass Transfer
Temperature, Heat, and the First Law of Thermodynamics
Thermal Energy.
Chapter 19 FORCED CONVECTION
Chapter 19 FORCED CONVECTION
Basic concepts of heat transfer: Heat Conduction
Presentation transcript:

MULTLAB FEM-UNICAMP UNICAMP MATERIAL PROPERTIES Defining the material properties is quite important to set up a flow model. Strictly they specify the magnitude of the diffusion and convection transports mechanisms. The code has several ways to convey material properties to eardat file and this lecture explores one of them. A full account on how phoenics handles material properties is in TR004.TR004

MULTLAB FEM-UNICAMP UNICAMP MATERIAL PROPERTIES Some ways (not all of them) to convey material properties to eardat file: 1.Setting to constant values at group 9 entries (useful for simple cases); 2.Selecting domain material from PROPS file (topic of this lecture); 3.Variable properties with pressure, temperature and other variables are handled using: a) In-Form, most recent phoenics’ feature and most effective (see In-Form PRPS workshop); b) using GRND pre-programmed routines (see class # 25 and workshop) and c) writing your own functions using GROUND coding.see class # 25and workshop

MULTLAB FEM-UNICAMP UNICAMP THE MATERIAL PROPERTIES The relevant entries are: The thermodynamic properties: density and specific heat, The transport properties: viscosity, thermal conductivity and diffusivity, The properties concerned with thermal radiation, namely emissivity and scattering coefficients, and The interphase-transport coefficients and equilibrium values for multi-phase flows.

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 The indirect and direct ways of setting properties Properties can be set in two ways, namely: indirectly, by naming the fluids and/or solids which are present, and stating what parts of the domain they occupy. Then, if PHOENICS recognises the names, it will evaluate and use the properties which prevail at each location from the corresponding formulae; and also (when the formulae make reference to them) from the prevailing: temperature, pressure and concentrations. directly, by specifying the properties individually, either as constants or by way of formulae, and then specifying the places where each is to be evaluated. This section deals with the indirect method: ‘setting properties by selecting materials’.

MULTLAB FEM-UNICAMP UNICAMP SELECTING A MATERIAL The material-property information is stored in PHOENICS in the PROPS file, which has been part of PHOENICS for many years; PROPS file The properties differ from material to material, and different cells may be occupied by different materials. To handle this task phoenics uses a material marker variable, which was given the name PRPS, having a unique value for each material. The locations of the materials could thus be indicated by ascribing a PRPS value to each cell; and the there-prevailing material properties could then be deduced by consultation of a material- properties file. It makes use of the formulae provided in the (user-accessible) Fortran coding, and refers to materials by number.

MULTLAB FEM-UNICAMP UNICAMP WHAT IS PRPS VARIABLE? PRPS is a whole-field variable used in EARTH and GROUND coding for indicating which material lies within each cell of the grid. It is activated by placing the STORE(PRPS) command in the Q1 file. Assigning values of PRPS must then be supplied for each cell in the domain, by means of either: – FIINIT(PRPS) = value, for the 'domain' fluid, usually that which fills the whole domain except for the parts occupied by solids; – PATCH(..... and INIT(...,PRPS,0.0, value), commonly used for stating where the solids are and what material they consist of; or – (INITIAL of PRPS is.... with...), when In-Form is in use, for either fluids or solids. Or by FORTRAN coding using GROUND

MULTLAB FEM-UNICAMP UNICAMP IMAT: THE MATERIAL INDEXES Each assignable value denotes an individual material, of which the properties are defined in the file called PROPS, which resides in d_earth. The PRPS values are also referred to as "material indices" or "material flags"; and they are given the symbol IMAT in GROUND coding. The whole file can be viewed by clicking here.here. The PRPS file can be edited and it is found on d_earth folder. They are grouped in three categories: gases, liquids and solids: gases at the top (IMAT from 0 to 39 ); then “anonymous fluids” (IMAT from 40 to 50) liquids in the middle (IMAT from 51 to 99) solids at the bottom (IMAT from 100 to 197) (velocity solution is not allowed) Two fictitious materials (IMAT = PORPRP and VACPRP): PORPRP, usually 198, which is the IMAT assigned to a fictitious solid which influences the flow process only by imposition of the no-fluid-slip condition at its boundaries. VACPRP, usually 199, which is the IMAT assigned to a fictitious solid which prevents fluid from entering its space, but exerts no frictional effect.

MULTLAB FEM-UNICAMP UNICAMP IMAT: THE MATERIAL INDEXES Each assignable value denotes an individual material, of which the properties are defined in the file called PROPS, which resides in d_earth. Examples are: 0 denotes air at 0 deg C and 1 atm pressure; 2 denotes air obeying the Ideal Gas Law; and 67 denotes water at room temperature. The PRPS values are also referred to as "material indices" or "material flags"; and they are given the symbol IMAT in GROUND coding. The whole file can be viewed by clicking here.here. The PRPS file can be edited and it is found on d_earth folder.

MULTLAB FEM-UNICAMP UNICAMP WHERE PRPS = -1 –Where PRPS = -1.0 – A feature introduced with PHOENICS version is the facility to set the PRPS-value of selected cells equal to – For these cells, the material properties are deduced not from the entries in the PROPS file but from the values of RHO1, ENUL, CP1, PRNDTL (temperature) etc which are set in the Q1 file and transmitted via EARDAT.

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 EXAMPLE: SETPRPS Then the Q1EAR file, which is created at the end of a SATELLITE run records in a structured manner what information (including defaults) will be sent to the solver module, EARTH, contains the lines: Group 9. Properties RHO1 = E+00 RHO2 = E+02 DVO2DT = E-04 ; DRH2DP = E+00 ENUL = E-05 CP1 = E+03 ; CP2 = E+03

MULTLAB FEM-UNICAMP UNICAMP EXAMPLE: SETPRPS Which are reflected in the RESULT file as: Group 19. EARTH Calls To GROUND Station USEGRD = T ; USEGRX = T SPEDAT(SET,DOMAIN,PHASE_1_MAT,I,0) SPEDAT(SET,DOMAIN,PHASE_2_MAT,I,67) These lines signify that, for the whole domain of simulation, the first-phase material has the properties associated with material 0 of the PROPS file, while the second-phase material has the properties of material 67.

MULTLAB FEM-UNICAMP UNICAMP WHEN DIFFERENT PARTS OF DOMAIN ARE OCCUPIED BY DIFFERENT MATERIALS It frequently occurs that PHOENICS is required to simulate flow and heat transfer in circumstances in which solid bodies are present. Often these solids interact thermally with the fluids. Moreover, different parts of the domain may be occupied by different fluids, as when a glass bottle containing hot water is cooled by contact with external air. This requirement is met by assigning different IMAT values to the spaces which each material occupies. Specifically:- A full-field variable with the name PRPS is called into existence by the PIL command: STORE(PRPS)

MULTLAB FEM-UNICAMP UNICAMP WHEN DIFFERENT PARTS OF DOMAIN ARE OCCUPIED BY DIFFERENT MATERIALS Then it is usual to initialize the field by assigning a value to FIINIT(PRPS). Thus, FIINIT(PRPS) = 67 would dictate that water (i.e. material 67) would occupy the whole of space. However, if this were followed by the statements: patch(block,inival,nx/4-1,3*nx/4,ny/4-1,3*ny/4,nz/4- 1,3*nz/4,1,1) init(block,prps,0,111.0) the central part of the grid would be occupied by a block of steel; for that is the material for which IMAT = 111.

MULTLAB FEM-UNICAMP UNICAMP WORKSHOP PRPS This workshop will develop the skill to set to different parts of the domain different materials. The case is a 2D pure heat conduction using brick (102) as domain material and cupper (103) in specific cells. It explores the differences on the temperature field due to the differences on the thermal conductivity between materials, 1:600 A square domain 1mx1m (xy plane) is used with the west wall at 100oC and the south wall at 0oC. The other boundaries are adiabatic.

MULTLAB FEM-UNICAMP UNICAMP WORKSHOP PRPS The cupper is inserted in specific cells shown in red. Due to the thermal conductivity difference between materials, the cupper patches enhance the thermal conductivity of the domain. The task is to use PIL commands to set properly the 103 material on the domain.

MULTLAB FEM-UNICAMP UNICAMP WORKSHOP PRPS Group 7. Properties STORE(PRPS) ! Creates a whole-field variable PRPS Group 9. Properties SETPRPS(1,102) ! Sets the domain to 102 material (brick) Group 11.Initialise Var/Porosity Fields FIINIT(PRPS) = E+00 ! Sets PRPS to the whole domain to 102 REAL(MAT) ! Creates real variable MAT MAT=103 ! Declares that MAT is 103 DO II=1,8,3 ! Starts a do loop inside q1 PATCH (MA4:II:,INIVAL,4,4,II+1,II+2,1,1,1,1) INIT(MA4:II:,PRPS, E+00, MAT) PATCH (MA3:II:,INIVAL,3,3,II,II+1,1,1,1,1) INIT(MA3:II:,PRPS, E+00, MAT) PATCH (MA2:II:,INIVAL,2,2,II+1,II+2,1,1,1,1) INIT(MA2:II:,PRPS, E+00, MAT) PATCH (MA1:II:,INIVAL,1,1,II,II+1,1,1,1,1) INIT(MA1:II:,PRPS, E+00, MAT) ENDDO ! Ends a do loop inside q1 Do-loop creates several patches and init, see RESULT file.

MULTLAB FEM-UNICAMP UNICAMP WORKSHOP RESULTS domain: just brick (103) domain: patched with cupper (102) Problems to build your q1? Download wksh_q1 for rescue!wksh_q1

MULTLAB FEM-UNICAMP UNICAMP WORKSHOP PRPS (II) In case the material property is not defined in PROPS file the user can either insert its own lines on PROPS file or make EARTH read then directly from Q1 file. The later case is preferred otherwise it would be necessary to copy de modified PROPS file every time the user change machine. This workshop will show how to read directly from Q1. In fact this operation is already done in workshop #3 from class #25.workshop #3 class #25 We will start with the present case but material 152 will be created in replacement to 102.

MULTLAB FEM-UNICAMP UNICAMP WORKSHOP PRPS (II) The last used index for solid is 151 (Ice), therefore was choose index 152 for a new type of Brick. The properties of 102 and 152 are in the table below for reference. Name *Ind. Dens. Viscos. Spec.heat Conduct. Expans. Compr Notice the 152 has the same thermal conductivity of the cupper (103), therefore its insertion may result in a symmetrical temperature field.

MULTLAB FEM-UNICAMP UNICAMP THE COMMAND CSG10 The CGS10=‘q1’ instructs earth to read the material properties defined in q1 file, the q1 lines in Group 9 should look like SETPRPS(1,152) ENUT = E+00 PRNDTL(TEM1) = -grnd10 ! The flag GRND10 in front a property makes earth to read it from the props file. CSG10='q1' MATFLG=T; NMAT=1 ! NMAT is the number of materials defined in q1. If one has to define 3 materials, for example, one has to set NMAT=3 and define three lines with entries for the properties. * Name *Ind. Dens. Viscos. Spec.heat Conduct. Expans. Compr ************************************************************ Group 11.Initialise Var/Porosity Fields FIINIT(PRPS) = 152

MULTLAB FEM-UNICAMP UNICAMP WORKSHOP II RESULTS with 152 having the same thermal conductivity of 103, the temperature should look like: Problems to build your q1? Download wksh(II)_q1 for rescue!wksh(II)_q1