PHOENICSer常问的问题集锦.doc_第1页
PHOENICSer常问的问题集锦.doc_第2页
PHOENICSer常问的问题集锦.doc_第3页
PHOENICSer常问的问题集锦.doc_第4页
PHOENICSer常问的问题集锦.doc_第5页
已阅读5页,还剩20页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

PHOENICS Frequently-Asked Questions; a selection CHAM Technical Report TR/010Document last revised 21/08/02Contents 1. Introduction 2. Installation 3. Boundary Conditions and Sources 4. Physical modelling 4.1 Turbulence 4.2 Multi-phase 4.3 Combustion 4.4 Melting and Solidification 4.5 Chemical Vapour Deposition (CVD) 4.6 Fire and Smoke Modelling 5. Choice of Numerical Methods 5.1 Convergence1. IntroductionCHAMs User-Support team provides assistance to PHOENICS users world-wide, both by responding to individual enquiries and by publishing, by way of CHAMs website, a Frequently-Asked-Questions (FAQs) page. Partly in order to draw attention to its existence, and partly because of the direct usefulness of its contents, a selection of questions and answers is now included in the hard-copy documentation of PHOENICS. A full set of frequently asked questions and answers is available on the Internet on a special website, for maintained customers. In addition, the answers to many questions can often be found in the PHOENICS Encyclopaedia. This can be accessed from within PHOENICS-VR via the HELP and POLIS options. Alternatively, it can be accessed directly via CHAMs website at http:/www.cham.co.uk2. InstallationQ1. Question: - When I click on compile from the VR Environment I encounter the error message Bad command. How do I cure the problem?Answer:This problem is usually because the path name to the script dfvars.bat is incorrect in the file /phoenics/d_utils/phoepath.bat. The relevant part of the phoepath.bat ( or phoepath.bat) file looks like:set DFDir=c:Program FilesMicrosoft Visual StudioDF98remecho Adding DIGITAL PHOENICS to pathpath=phoenicsd_utilsd_windf;phoenicsd_utils;%path%call %DFDir%bindfvars.batWhen the Compaq Visual Fortran compiler was installed in the users computer, it may not have been placed in the default directory, but in some other directory or even on a different drive. The set DFDir line should be modified to reflect the actual location of the compiler. Note that the marks around the path name are vital if the directory names contain spaces.The default location for V6.0 onwards is:c:Program FilesMicrosoft Visual StudioDF98. For V5.0 of the compiler, the default location is:c:Program FilesDevstudioDFbindfvars.bat. In summary, the solution to the Bad Command problem is to determine the location of the dfvars.bat file on your computer and then correct the path name in the phoepath.bat file.Q2. Question: - When I click on compile from the VR Environment I encounter the error message Out of environment space. How do I cure the problem?Answer: This problem may be cured by inserting the following line in your c:config.sys file:shell=c: c: /P /E:4096.If this doesnt work, then try the following. When you click on compile and then on GROUND, you can try increasing the environment memory for the window in which the compilation is taking place, i.e. click on the properties of the window, then click on memory and then under Initial Environment change Auto to say 4096. This should be equivalent to the config-file suggestion made above.Q3. Question: - When I click on compile from the VR Environment I encounter the error message Too many parameters. How do I cure the problem?Answer:This error message may be cured by modifying the file /phoenics/d_utils/phoepath.bat so that the path statement:echo Adding DIGITAL PHOENICS to pathpath = phoenicsd_utilsd_windf;phoenicsd_utils;%path%is replaced byecho Adding DIGITAL PHOENICS to pathpath = phoenicsd_utilsd_windf;phoenicsd_utils;c:dos;c:windowscommandThis means the path is set explicitly, rather than adding to an existing path by the use of %path%. The path statement above is the bare minimum required for Windows - it should replicate the actual path on the users system.Q4. Question: - I get black holes in my contours in the VR-Viewer. How do I cure the problem?Answer:Some customers have experienced some problems with some graphics cards before, including. some very small black holes in contours; just the size of a pixel large black holes in contours. In each case, the problems were solved by downloading the latest upgrade of the graphics card driver software from the graphics card manufacturers website.Previously reported problems due to graphics cards were. MATROX G450 AGP Card. A bug in their driver software caused big black holes in contours. The customer, in Venice, solved the problem by downloading their latest driver software from their website at ATI 128 Pro GL Graphics Card, with 16MB. The customer was only able to use Phoenics on 256 colour mode, and not with other options like true colours, for which it gave an error message, related to the ati .dll driver software. Whatever Graphics Card/Video Board you have, it will often pay to ensure that you have the latest upgrades/service packs for their driver software installed, especially if you are experiencing problems. Sometimes their software may have bugs. You can usually download for FREE, their latest driver software from the manufacturers website. Note that care is needed to download the software for the particular operating system being used.Q5. Question: - The VR-Viewer sometimes draws the contours in white.Answer:On some machines, probably faster machines, in VR-Viewer, when plotting contours, it sometimes plots the slice all in white,i.e. no colour contours can be seen. In the meantime, users can solve the problem only by exiting and restarting VR. Then, when the user next presses the contour button, he/she should not release the button quickly, but rather he/she should hold the button down that little bit longer - say a second or two. This practice seems to avoid the problem. However,once the white contour does appear, the user must exit VR and restart to clear the problem.Q6. Question: - I have problems selecting objects with the mouse in the VR-Editor.Answer:We found that the picking problem, found by one user, was cured by lowering the Hardware Acceleration of the Graphics Card, from the default of Full, via the Display advanced troubleshooting settings.3. Boundary Conditions and SourcesQ1. Question: - How do I set resistance terms, such as the Ergun Equation?Answer:IntroductionThe ERGUN equation represents the pressure drop associated with flow through a packed bed, or more generally, a porous medium.In PHOENICS, pressure drops are applied as sinks in the momentum equation. The units of the momentum equation are those of force, so the pressure drop must also be turned into a force. The ERGUN equation can be written as:dp/dx = a*U1 + b*U12where a=/K and b is an empirical constant. Here, is the dynamic viscosity of the fluid flowing through the porous media and K is an empirical constant called the permeability.The pressure drop can be turned into a force, as follows:Fx = Area * dp = Area * dp/dx * dx Now Area = dy * dz; so dx * Area = Volume Hence:Fx = Volume * (a*U1 + b*U12)Implementation The velocities used in the equation are superficial velocities, so This can be introduced as two patches: PATCH(ERGUN1, VOLUME, . COVAL(ERGUN1, U1, a, 0.0) PATCH(ERGUN2, VOLUME, . COVAL(ERGUN2, U1, -b, 0.0) Note that the -ve COefficient in patch ERGUN2 is activating a quadratic source - as stated in POLIS.In the VR-Editor, the above can be achieved by giving an object the type User-Defined, and setting two patches with the Attributes as described above.Q2. Question: - How do I set a Stagnation Pressure boundary condition?Answer:For incompressible flows, the stagnation pressure is:Pt = P + 0.5 . r. vel*2This can be manipulated to give the mass flux:r . vel = ( 2 . r. (Pt - P) )For P1 (and also P2), a negative coefficient flags a mass source of the form:Sm = T . ( abs ( Cm . (Vm - Pp)where Cm and Vm are the coefficient and value for mass (P1).The desired stagnation source can thus be set by putting:coefficient = - 2 * r value = Pttype = appropriate areaThese settings must be supplemented by a COVAL for the velocity component normal to the boundary, with coefficient set to ONLYMS, and value set to SAME.PIL example: PATCH (PSTAG, LOW, 1,N,1,NY, 1,1, 1,LSTEP)COVAL (PSTAG, P1, -2*RHO1, PSTAG)COVAL (PSTAG, W1, ONLYMS, SAME)Note that for compressible flows, it is still possible to set stagnation conditions, though not in such an easy fashion.In the VR-Editor, the above can be achieved by giving an object the type User-Defined, and setting the Attributes as described above4. Physical Modelling4.1 TurbulenceQ1. Question: - How do I obtain the wall shear stresses from my PHOENICS simulation?Answer: If you put STORE(STRS,SKIN,YPLS) in Group 7 of the Q1 file, PHOENICS will write to the PHI and RESULT files the wall shear stress (tau/rho), the local skin friction coefficient (tau/(rho*urel*2), and the dimensionless wall-to-node distance (y+=ustar*dist/enul). If the energy equation is solved, then STORE(HTCO) will cause PHOENICS to write the heat transfer coefficients to the PHI and RESULT files.Q2. Question: - How do I introduce a log-law inlet profile without recourse to GROUND coding?Answer: Library case N110 provides an example of PIL Q1 coding for use with high-Reynolds number turbulence models.Library case T207 provides an example for low-Reynolds turbulence models, but in the form of INIVAL PATCH rather than on INLET PATCH.4.2 Multi-phaseQ1. Question: - What are the free surface capabilities in PHOENICS?Answer: PHOENICS has at least six features which have been used for the simulation of flows with free surfaces, namely:(1) Height-of-liquid (HOL) method; (2) Scalar-equation method (SEM);(3) IPSA, with high interphase friction and an interface sharpening device;(4) Moving porosities, with a blocked region adapting to the shape of a liquid surface;(5) Moving body-fitted coordinates; and(6) Surface tracking by means of moving particles.Which method should be chosen depends on the type of application area. CHAM can offer advice if comprehensive information is supplied by the user about the kinds of free-surface problems for which he is seeking solutions. This information should include answers to at least the following questions:(a) Is the flow steady or unsteady?(b) Is the flow 1D, 2D or 3D?(c) Are the fluids gases, liquids or both?(d) Does mass cross the interface, and, if so, in accordance with what law?(e) Does the interface remain approximately horizontal or approximately vertical?(f) Are there any other known limitations, for example - no overturning?(g) Is gravity (or some other body force) active?(h) Is one, or are both, fluids, in thermal contact with a solid obstruction to the flow?(i) Is either fluid compressible?(j) Is the user interested in a single example or in a class of problems? (k) If the user is interested in a class, what is the extreme range conditions contained in the class?Some technical comments on the various methods are: SEM is likely to be expensive in computer time as it needs to be run as a transient, and requires small time steps to combat numerical smearing of the interface (free surface), and to maintain numerical stability. HOL is more economical than SEM, but may have to be run as a transient in order to obtain convergence. In addition, this method does not allow any overturning of the interface. IPSA involves solving twice as many equations as the other methods unless run in equal-velocity mode, i.e. one set for the liquid phase and one for the gas. The methods will need to be run as a transient if the interface-sharpening device DONACC is used to avoid numerical smearing of the interface. 4.3 CombustionQ1. Question: - How can I best use PHOENICS for simulating the propagation of flame, and of the associated pressure waves, in a closed cavity, initially filled with a combustible gaseous mixture, when ignition occurs at more than one point? The dimensions and times are small enough for the process to be presumed laminar. The mixture consists of hydrogen, oxygen and nitrogen; and detailed chemical kinetics must be taken into account.Answer:Because the thickness of the flame front will be very small compared with the dimensions of the apparatus, an accurate simulation will require the grid to be very fine.Since the whole phenomenon is three dimensional and transient. Computing times will be so long as (probably) to be regarded as impractical. Therefore some simplifications will need to be made, as follows: 1. The influence of the initial composition, temperature and pressure, and of the chemical-kinetic constants, can best be explored by use of a one-dimensional model; for this will allow the grid to be fine enough for the reaction-diffusion interactions within the thin flame front to be computed accurately. 2. In this case it will be advisable to make use of the stretching-coordinate system exemplified in library case 109; for this eliminates numerical diffusion. 3. The CHEMKIN add-on should be used for the correct representation of the thermodynamic and chemical-kinetic properties of the gases; and if the highest realism is required, the multi-component diffusion module of PHOENICS-CVD can be activated. 4. Such a one-dimensional study will reveal under what conditions detonation (i.e. significant chemical reaction, ahead of the flame, brought about by adiabatic compression) will occur. It will also enable a flame-speed-versus-pressure-and-temperature database to be created for each initial condition. 5. The behaviour of the gas with multiple ignition points can thereafter be computed by treating the flame as a thin discontinuity of temperature and composition which propagates through space at the speed given by the data-base created in the one-dimensional study. Such a multi-dimensional thin-flame study is exemplified by the PhD work of J.Z.Wu. 6. The onset of detonation will be detected, in this multi-dimensional thin-flame study, by accurate computation of the reaction in the ahead-of-flame gas. These reactions, being rather uniform in space, do not require a fine grid. 4.4 Melting and SolidificationQ1. Question: - Should the H1 or TEM1 formulation of the energy equation be used to simulate the melting of a metallic charge in a furnace together with conductive heat transfer through the bounding refractory walls?Answer: The use of H1 is not recommended for composite-media problems in Versions earlier than 3.5, because the conductive heat flux was represented by qi =-(k/Cp)*dH/dxi. The TEM1 equation is recommended because the heat flux is represented correctly as qi =-k*dT/dxi, and it is solved as an energy equation with temperature as dependent variable. Consequently, the convection and transient terms are represented in terms of enthalpy. The latent heat effects can be introduced into the TEM1 equation by one of two methods: (a) the use of an effective specific heat.(b) the use of an enthalpy source term to represent the evolution of latent heat.Method (a) is simpler to implement than Method (b), but can suffer convergence difficulties around limits of the phase-change region due to the discontinuous nature of the effective specific-heat curve at the solidus and liquidus temperatures. This leads to over-corrections in the energy equation which could be corrected by appropriate modifications to the central-coefficient term Ap in the TEM1 equation. This balance equation, like all others in PHOENICS, is solved in correction form. The use of method (b) with the TEM1 equation presents no formulation difficulties because, as was mentioned already, the transient and convection terms are represented in terms of the enthalpy. The treatment of the latent-heat source term requires special attention to ensure convergent behaviour, as discussed by Voller and Prakash Int.J.Heat Mass Transfer, Vol.30, No.8, p1709, (1987). Further information on how to implement either of the two melting methods is not covered by free user support, but simple Q1 examples and GROUND subroutines can be purchased from CHAMs Consultancy Team.4.5 Chemical Vapour Deposition (CVD)Q1. Question: - How do I store thermal diffusion coefficients within CVD PHOENICS?Answer:The thermal diffusion coefficients can be stored by use of:STORE(TD01,TD02,.,TDNN)Q2. Question: - In CVD PHOENICS what are the units of the polynomial coefficients in the THERM.DAT data file?Answer:The polynomial coefficients for the calculation of the thermodynamic properties are dimensionless as is evident from the equations below:cp/R = a1 + a2*T + a3*T2 + a4*T3 + a5*T4H0/RT = a1 + a2/2*T + a3/3*T2 + a4/4*T3 + a5/5*T4 + a6/TS0/R = a1*ln(T) + a2*T + a3/2*T2 + a4/3*T3 + a5/4*T4 + a6/5*T5 + a7Q3. Question: - How can I use species that contain more than 4 elements, when only 4 can be included in the THERMDAT data file?Answer:The format of the THERMDAT file was based on that used by CHEMKIN, which only provided room for 4 elements. To overcome this limitation, PHOENICS-CVD makes use of other spaces in the THERMDAT entry to enable a further 4 elements to be included.The first 4 elements occupy columns 25-44 on line 1 of an entry: 5 columns per element - 2 for the symbol, 3 for the number of atoms of the element in each species molecule. The additional elements should be positioned as follows: Element 5 - line 1, columns 74-78 Element 6 - line 4, columns 61-65 Element 7 - line 4, columns 66-70 Elem

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论