# Fluent FAQ

(Difference between revisions)
tags to keep the code legible.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +                                                                                           * No, it is not necessary to save your sites when you want to modify the application installation. Your sites and results are still presents in their locations. The software automatically manage with those during the installation.
+
+                                                                                           ===Turbulence===
+
+                                                                                           I wonder if meteodyn WT use a k-e model for turbulence?
+                                                                                           * The turbulent fluxes in meteodyn WT are modeled by using the concept of "turbulent viscosity" considering a linear relationship between turbulent fluxes and the mean velocities gradients, as it is done in the k-e model. The turbulent viscosity is the product of a speed scale (square-root of the turbulent kinetic energy) and a length scale. The turbulent kinetic energy is computed as in the k-e model with a transport equation. The difference with the k-e model is that the length scale is not computed from the k-e dissipation equation but from empirical relationships deduced from numerous measurements in the atmospheric surface layer. The k-e model is not fitted for atmospheric flows because it cannot consider the large scales of the turbulence. In this way, meteodyn WT gets more realistic values of the turbulent viscosity.

-                                                                                                                                                                ==== How do I upload images? ====                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               +                                                                                           Moreover, meteodyn WT takes into account the anisotropy of the turbulent viscosity in the atmosphere, particularly for the lateral turbulence (wind directions fluctuations). The stability effects and high roughness effects are also considered in the determination of the turbulent viscosity.
-                                                                                                                                                                * Create the image on your local machine e.g. skew_mesh.jpg                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     +
-                                                                                                                                                                * Upload the image to [http://www.imageshack.us Imageshack]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     +
-                                                                                                                                                                * Copy the link "Thumbnail for websites"                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +

-                                                                                                                                                                ==== How do I share non-image files as attachments? ====                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +                                                                                           ===Wind Energy===
-                                                                                                                                                                * If you have more than one file, zip them into a single file.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
-                                                                                                                                                                * Upload the file to [http://www.rapidshare.de Rapidshare] [http://www.gigasize.com/ Gigasize]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
-                                                                                                                                                                * Scroll down to "I don't want a collector's account right now. Just give me the download-link." and click it.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
-                                                                                                                                                                * Scroll down until you see the link e.g. http://rapidshare.de/files/33808646/audio.log.html                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +

-                                                                                                                                                                == FLUENT ==                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +                                                                                           What kind of model is used for computing the wake effects?
-                                                                                                                                                                === Solver Related ===                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +                                                                                           * meteodyn WT uses a modified Park model. The wake decay constant is directly got from the turbulent intensity computed at the wind turbine generating the wake, instead (as in standard Park model) of evaluating it from the local roughness.
-                                                                                                                                                                ==== What does "floating point error" mean? How can I avoid it? ====                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +

-                                                                                                                                                                The floating point error has been reported many times and discussed a lot. Here are some of the answers found in the Fluent Forum:                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +                                                                                           ===Meteorology===

-                                                                                                                                                                From numerical computation view point , the basic operations performed by computer are represented inside computer in what is called floating point numbers. The errors that are either because of invalid numeric computation initiated by user or limitation of machine that is used are floating point errors.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               +                                                                                           What is done in meteodyn WT to deal with the thermal effects in the boundary layer? Is this done by using an energy equation to model buoyancy in the flow?
+                                                                                           * Taking into account the thermal effects by introducing an energy equation would introduce some additional parameters and unknown variables which would make the work fastidious for the user (for example: how to know the temperature boundary conditions?).
+                                                                                           Thus, meteodyn WT considers a more generalist approach. The thermal stability can be varied in the software thanks to a stability parameter. It varies from 0 (very unstable) to 9 (very stable). The parameter 2 refers to the near neutral case. This parameter not only modifies the wind profiles (velocity and turbulence) which enter the domain, but it affects also the way the mixing length used by the turbulence model is computed (this turbulence model was developed in order to handle atmospheric boundary layer problems).
+
+                                                                                           ===MESH===
+                                                                                           1. What type of mesh is used in meteodyn WT?
+                                                                                           * The mesh is mono-block structured boundary fitted with a refinment around the interest points (wind turbines and mapping)

-                                                                                                                                                                1)Invalid Operations:- Simplest example is if one uses Newton Raphson root finding method to solve f(x)=0 and for some Nth iteration if we get x = x(N) such that  derivative of function f(x), f'(x(N))=0 then formula for calculating next iterate  x(N+1) = x(N) - f(x(N))/f'(x(N)) requires division by f'(x(N)) which is zero. Here you get divide by zero type of floating point error.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   +                                                                                           2. What is the limit of cells number?
+                                                                                           * A customer just found a limitation for the 64 bit version (around 21 million of cells). We are now working in order to break this limitation soon.

-                                                                                                                                                                2) Over or Underflow:- Another type is having data with either too large or too small magnitude called 'overflow' or 'underflow' respectively.Such data cannot be physically represented on computer for direct processing by arithmetic processing part of Processor.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +                                                                                           ==UrbaWind==

-                                                                                                                                                                3) Rounding off errors :- While rounding off a decimal number , some significant digits are lost which cannot be recovered .                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +                                                                                           ===MESH===
-                                                                                                                                                                e.g. if we round off 0.1 to integer (not greater than it called 'floor' of the given no.) then it is zero. If this value if further used for computation then it may lead to several errors.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +                                                                                           1. What type of mesh is used in UrbaWind?
+                                                                                           * The mesh is Cartesian unstructured with a refinment around the buildings and the interest points.

-                                                                                                                                                                '''SOLVER AND ITERATION''' -----I think if you set shorter time step, it may be good. Or changing little Under-Relaxiation-Factors, it may be good. In my experience, I set 1/3 Under-Relaxiation-Factors as default.� -----�also lower the values of under relaxation factor and use the coupled implicit solver� -----�Try to change under-relaxation factors and if it is unsteady problem maybe time step is to large.� -----�you can improve the ratio in the solve--control--limits, maybe that can help.� -----�you will need to decrease the Courant number� -----�If you still get the error, initialize the domain with nothing to 'Compute from...' Then click 'init'. Again select the surface from which you want to compute the initial values & iterate. This should work.� -----�Another reason could be a to high courant number - that means, that the steps between two iterations are too large and the change in the results is too large as well (high residuals)�

-                                                                                                                                                                '''GRID PROBLEMS''' -----�this error comes when I start scaling grid. in gambit, all my dimension is in mm, when in fluent i convert it in meter using buttone SCALE. after it, when i iterate, about hundred iteration, this error appeared. but when i not scale my drawing to m...and let it be as in gambit..then the iteration is success. -----�hi I think you should check your mesh grid mesh is very high. your problem solve by selection a low mesh.� -----�Your mesh is so heavy that your computers resources are not enough. try to use coarser mesh.�
-
-                                                                                                                                                                '''BOUNDARY CONDITIONS''' -----�In my case I had set a wall boundary condition instead of an axis boundary condition and then FLuent refuses to calculate telling me 'floating point error'.� -----�Your Boudary Conditions do not represent real physis.� -----�wrong boundary condition definition might cause the floating point error. For example setting an internal boundary as interior� -----�Once I had the problem, simulating a 2D chamber with a symmetry BC. I set the symmetry somewhere as �axe symmetric� and the floating point error occur� -----�check the turbulence parameter you set. reduce the turbulence intensity to less that one for first, say 50 iterations.
-
-                                                                                                                                                                '''MULTI PROCESSOR ISSUES''' -----"I've had similar problems recently with floating point errors on a multi processor simulation. The solution for my problem seems to be to run on a single processor, where it runs fine....?�
-
-                                                                                                                                                                '''WRONG INITIATION''' ----- Initiating the case with wrong conditions may lead to floating point error when the iterations start.
-
-                                                                                                                                                                ==== What is the difference between the coupled and the segregated solver? ====
-                                                                                                                                                                In the latest Fluent release,6.3.26 these are referred as density based and pressure based solvers.
-
-                                                                                                                                                                The coupled solver will solve all equations (conservation equations for mass, momentum and energy) simultaneously instead of sequentially (the equations are segregated from one another). You should use the coupled solver when the velocity and pressure are strongly coupled (high pressures and high velocities), but very long calculation times may be required when you use the coupled solver.
-
-                                                                                                                                                                In the coupled solvers, the Species Diffusion Term is always included in the energy equation.
-
-                                                                                                                                                                When you use the segregated solver, FLUENT allows you to specify anisotropic conductivity for solid materials
-
-                                                                                                                                                                From the [http://www.cfd-online.com/Forum/fluent_archive.cgi?read=40127 Fluent forum]:
-
-                                                                                                                                                                Choice of solvers depends heavily on the model being solved. The segregated solver solution is based on the pressure, while the coupled solver solution is based on density. This makes the segregated solver better at low speed flows and the coupled solver better at solving transonic / supersonic cases. I wouldn't recommend the coupled solver at any flows below Mach .4 (until the pressure based coupled solver comes out in the next release of Fluent). I've used the Segregated solver up to Mach 1.5 with great results, but the higher speed, the more mesh dependent you become (because the segregated solver tends to "smooth out" shocks), so you have to pay a lot of attention to your meshing.
-
-                                                                                                                                                                The coupled solver tends to be more stable with the defaults settings. The segregated solver tends to be very sensitive to the allowable limits. When trying to get a solution with the segregated solver, DO NOT increase the turbulent viscosity ratio limit (unless you have a great reason to based on past experience or the physics of your current model truly exceeding that limit, but I've never even heard of that being realistic). Instead limit the pressure and temperature limits to reasonable limits (i.e. Plimits = Pstatic +/- (2 * dynamic pressure), and calculate the appropriate temps). You need to give the solution "room to move" while it reaches a solution, but you don't want to give it enough room where it goes out to some totally impossible numbers, and the limits help prevent this.
-
-                                                                                                                                                                === Model Related ===
-                                                                                                                                                                ==== What is the turbulent viscosity ratio warning and how can I handle it? ====
-                                                                                                                                                                The problem can be caused by improper values for the boundary condition turbulence parameters.  Check the fluent manual (which is kind of more like a textbook), about modeling turbulence.
-
-                                                                                                                                                                For the case of internal flow, you basically have to consider the physical state of the fluid upon entrance to your control volume.  If the fluid is coming into your volume from a fully developed turbulent pipe flow, it will have more turbulent energy than from a stagnant fluid.  Think of lots of little vortices, which mostly mix things up, and those all have kinetic energy associated).  This energy can be expressed as a nondimensional Intensity (a percentage is used).  In addition, a Length parameter is specified.
-
-                                                                                                                                                                ==== How can I determine the inputs for a porous media or porous jump from flow versus pressure drop data? ====
-                                                                                                                                                                If you have pressure drop versus velocity data, you can fit the following equation through the data:
-
-                                                                                                                                                                $\Delta P = Av^2 + Bv$
-
-                                                                                                                                                                where $\Delta P$ is the pressure drop and $v$ is the velocity. The coefficients $A$ and $B$ are related to the Fluent variables for the permeability $\alpha$, and the pressure coefficient $C_2$ by
-
-                                                                                                                                                                $A = \frac{C_2 \rho \Delta n}{2}$ and $B=\frac{\mu}{\alpha}\Delta n$
-
-                                                                                                                                                                where $\Delta n$ is the thicknes of the medium.
-
-                                                                                                                                                                ==== How do I model heat conduction in a composite wall? ====
-
-                                                                                                                                                                ==== What pressures should be specified at inlets and outlets for buoyancy flow problems? ====
-
-                                                                                                                                                                what pressures at inlet and outlet should specified in natural convection?
-
-                                                                                                                                                                ==== Are there any general guidelines on selecting a turbulence model? ====
-
-                                                                                                                                                                ==== How can both turbulent and laminar flow be included in one model? ====
-
-                                                                                                                                                                Depends.  Fluent cannot presently compute boundary layer instability and subsequent transition to turbulence using a RANS approach (ke, SST, RSM etc).  CFX has a new feature to do this, so perhaps it will be incorporated into Fluent soon as they are both owned by ANSYS.
-
-                                                                                                                                                                You therefore have two options :
-
-                                                                                                                                                                1. If you know the point of transition (like on an aircraft wing) from experimental data or DNS simulations, you can impose laminar flow in some regions by meshing a separate fluid region, and enabling "laminar zone" for this region in boundary settings.  That is also useful in heat transfer cases, if for example you have turbulent flow one side of a thermal wall, and natural convection on the other side.
-
-                                                                                                                                                                2. A "near-wall" turbulence approach : Either k-omega, SST, or Low Reynolds k-E (which you have to select from the "Turbulence modelling/expert" menu), will damp turbulence near to the wall, either by empirical damping of turbulent "k" (Low Reynolds k-E) or by full solution of the omega equation on a fine enough mesh (k-omega/SST).  If you have flows in small gaps in a larger, turbulent domain, in which large lengthscales of turbulence of course could not be supported, the flow will re-laminarise in a physically sensible (although perhaps not mathematically exact) manner.  These models will also MAINTAIN laminar flow in external boundary layers, PROVIDED that you have a fine enough mesh (use the laminar mesh distribution guidelines in Fluent manual, too coarse a mesh will lead to non-physical turbulence generation in the BL).  BUT they will maintain this laminar flow and evolution of the laminar profile (in the absence of significant disturbance by separation or impingement at the wall) forever, no spontaneous instability or transition to turbulence will occur.  So check the length-based Reynolds numbers of walls where you think there will be undisturbed laminar boundaries, that there is not expected to be spontaneous transition of these BLs.
-
-                                                                                                                                                                ==== How to start a 3D simulation with an compressible medium and temperature changes? What is important to consider ====
-
-
-                                                                                                                                                                I would do it that way:
-
-                                                                                                                                                                1. solve the flow for incompressible medium, without energy equation. Set the density close to the density, that you expect at the present pressure and temperature. The solution for the flow dosn't has to be completely convergent, but the residuals should be on the way down.
-
-                                                                                                                                                                2. Apply energy equation and compressibility of the gas and set the present pressure with operating condition option. You might do some iteration steps as well. Sometimes they are not necessary
-
-                                                                                                                                                                3. Apply the thermal BC
-
-                                                                                                                                                                === Solution Methodology ===
-                                                                                                                                                                ==== How do I carry out rotating body analysis, eg a rotating sphere or cylinder''' in flo'''w?  ====
-                                                                                                                                                                Rotating cylinder problem ( assume circular ), can be done easily by specifying angular velocity on the cylinder wall. As i observed no need of moving mesh for this case. you need to specify the rotation axis with respect to which your cylinder is rotating.
-
-                                                                                                                                                                ==== How do I get better and faster convergence? ====
-                                                                                                                                                                ==== What is the role of under-relaxation parameters? What should be the optimum choice of these parameters? ====
-                                                                                                                                                                They limit the influence of the previous iteration over the present one. If you choose small values it may prevent oscillations in residuum developing. At the same time the solution may need more time to converge.
-                                                                                                                                                                Keep the default values as they are given in FLUENT. You can decrease them gradually if necessary. Momentum 0.6, pressure 0.1, k 0.4, eps 0.4, mass source 1, viscosity 1.
-
-                                                                                                                                                                === User-Defined Function (UDF) Related ===
-
-                                                                                                                                                                ==== How do I learn UDF programming? ====
-                                                                                                                                                                There are not to many tutorials out there on this, probably due to the wide variety of things you can do with the UDF interface.  The documentation the Fluent provides is pretty good once you know what you are trying to do (chapter 8 of the UDF manual has examples).  UDF programming is easier if you have C programming experience, so it is advisable to learn a little C programming, then do some of the simple cases that Fluent provides, then tackle the problem you really want to solve.
-
-                                                                                                                                                                ==== How do I create/build/load a UDF? ====
-                                                                                                                                                                The simplest way to add a UDF into Fluent is to write your UDF in the C programming language and then use Define -> User-Defined -> Functions to either interpret or compile your UDF.  It can then be loaded.  Fluent provides good documentation of the UDF interface with numerous examples, so read that before trying too much.
-
-                                                                                                                                                                ==== Do I have to use C? ====
-                                                                                                                                                                Yes and no.  To hook your UDF into Fluent, you'll probably have to use one of the DEFINE_* macros that Fluent provides, and this is most easily done using C.  However, you can write routines that are used in the routines that are defined with the DEFINE_* macros in other languages and then link them together.  This requires some knowledge of mixed language programming, Makefiles, the text user interface (TUI), and is not necessarily very portable.  An example using Fortran is given in Section 5.4.1 of the Fluent UDF Manual (version 6.3).
-
-                                                                                                                                                                ==== Which compilers work? ====
-                                                                                                                                                                On Unix-like machines, GCC is the compiler of choice.  On Windows machines, Microsoft Visual C++ is the compiler of choice (GCC may also work on Windows- if anyone has firsthand knowledge of this, please share).  The free Express Edition of the Microsoft compiler also works.
-
-                                                                                                                                                                ==== My UDF won't interpret or compile - what is wrong? ====
-                                                                                                                                                                The answer depends upon what exactly has happened.
-
-                                                                                                                                                                *If Fluent complains about not being able to find a compiler, then check to make sure that the compiler is properly installed.  On Windows machines, it is possible to install the Visual C++ compiler without fully setting up the command line compiler (which Fluent needs to be able to find).  During the installation process, you need to select the "register environment variables" option.  Failure to do so will likely lead to complaints about things being "not recognized as an internal or external command, operable program or batch file" or missing DLL's.  It is theoretically possible to fix this issue by setting the appropriate environment variables, but keep in mind that even when nmake can be found there still may be DLL issues.  The easy path is probably reinstallation of Visual Studio (taking special care to make sure that the command line interface is set up properly), but the reinstallation path is always perilous.  If you have long-term experience using Windows you should probably know the risks, and if you don't you should consult an expert.
-
-                                                                                                                                                                *If you are interpreting, keep in mind that not everything that is supported for compiled UDF's is supported for interpreted UDF's.  This is true both for the UDF interface and the C language.  If you are doing something pretty involved and it fails inexplicably, try compiling to see if that makes a difference.
-
-                                                                                                                                                                *There is also the possibility of coding errors.  Keep in mind that your source code gets run through the C preprocessor (to change the Fluent macros into C code), so unintended interactions are very possible.
-
-                                                                                                                                                                ==== Why do I get the message "'nmake' is not recognized as an internal or external command, operable program or batch file"? ====
-                                                                                                                                                                This is a Windows/Visual Studio issue.  In order to compile your UDF, Fluent needs to know where the nmake program is located, and it currently can't find it.  If you open up a command window and enter "nmake", you should probably get the same message.  See the previous question/answer.
-
-                                                                                                                                                                ==== My UDF interprets/compiles but fails to execute - what is wrong? ====
-                                                                                                                                                                This commonly occurs due to a faulty operation of some kind.  For example, user-defined memory (UDM) is not allocated until initialization, so attempting to access a UDM variable before initialization can lead to a segmentation fault.  Try to isolate the cause, and then look for places where your expectation of what is available may not match reality.  Finally, keep in mind that if you do something really bad, you may need to restart Fluent before even a fixed UDF will work.
-
-                                                                                                                                                                === Post-Processing Related ===
-                                                                                                                                                                ==== What is the best way to generate an animation? ====
-                                                                                                                                                                There are several ways to do this (both inside and outside of Fluent), and all have merits, so there is probably no "best" way.  There are two approaches to using Fluent to generate the graphics: use Fluent to generate the movie (using Solve->Animate->Define...) or use Fluent to generate individual frames of an animation (by generating a hardcopy image at appropriate intervals, then assemble the animation with an external program.  Many available postprocessing tools (e.g. Tecplot) can also generate animations, so saving complete data files for use with the postprocessor can also be a path to a animation.
-
-                                                                                                                                                                ==== What hardcopy format should I use? ====
-                                                                                                                                                                The answer here depends upon what you need.  For maximum accuracy, use a lossless format (e.g. PPM).  The disadvantage of the lossless formats is usually the size of the files.  For smaller file size, use a format like JPEG, which will lose some detail.  In some cases, the loss of detail will not be be easy to see, while it may be in others.
-
-                                                                                                                                                                === Journal File and Text User Interface (TUI) Related ===
-                                                                                                                                                                ==== What is the Text User Interface? ====
-                                                                                                                                                                The Text User Interface (TUI) is a command-line-like interface to Fluent.   The TUI is accessed through the main Fluent (hit enter while in the main Fluent window), with a menu system and the ability to execute Scheme programs.  Fluent's documentation compares the menu system to the UNIX directory structure.  Since it is text base, you can create and modify sequences of TUI commands using a simple text editor (see journal files below).
-
-                                                                                                                                                                When Fluent starts, you are in the "root" menu: press enter and you'll see something like this:
-
-                                                                                                                                                                >
-                                                                                                                                                                define/                 grid/                   solve/
-                                                                                                                                                                display/                parallel/               surface/
-                                                                                                                                                                exit                    plot/                   view/
-
- To access the plot menu, just type in "plot" and then press enter.  To bring up the available commands, press enter again: -
-                                                                                                                                                                > plot
-
-                                                                                                                                                                /plot>
-                                                                                                                                                                change-fft-ref-pressure file-set/               residuals
-                                                                                                                                                                circum-avg-axial        flamelet-curves         residuals-set/
-                                                                                                                                                                fft                     histogram-set/          solution-set/
-                                                                                                                                                                file                    plot
-                                                                                                                                                                file-list               plot-direction
-
- - To exit a menu, simply type "q" and press enter (the rough equivalent of "cd .." in Unix).  The TUI also understands command abreviations, so "pl/rs" is interpreted as "plot/residuals-set". - - ==== What is a journal file? ==== - A journal file is a series of TUI commands stored in a text file.  The file can be written in a text editor or generated by Fluent as a transcript of the commands given to Fluent during your session.  A journal file generated by Fluent will include any GUI operations (in a TUI form, though).  This is quite useful if you have a series of tasks that you need to execute, as it provides a shortcut.  To record a journal file, start recording with File -> Write -> Start Journal..., perform whatever tasks you need, and then stop recording with File -> Write -> Stop Journal... - - ==== How do I add a comment in a journal file? ==== - Any line beginning with a ''';''' (semicolon) is treated as a comment. - - ==== How do I set boundary conditions? ==== - Suppose we have a boundary named "south" that we want to set as a wall.  The command is -
-                                                                                                                                                                /define/boundary-conditions/zone-type south wall
-
- which sets the zone "south" as a wall.  The details (moving wall, etc.) can then be accessed be executing -
-                                                                                                                                                                /define/boundary-conditions/wall south
-
- in the text user interface. - - ==== How do I write a XY-plot? ==== - look at - http://www.cfd-online.com/Forum/fluent_archive.cgi?read=40200 - - ==== How do I set material properties? ==== - look at http://www.cfd-online.com/Forum/fluent_archive.cgi?read=38768 - - one example: - -
-                                                                                                                                                                //define/materials/delete
-                                                                                                                                                                air_50c
-                                                                                                                                                                //define/materials/delete
-                                                                                                                                                                air_1bar
-                                                                                                                                                                //define/materials/change-create
-                                                                                                                                                                air
-                                                                                                                                                                air_1bar
-                                                                                                                                                                y
-                                                                                                                                                                incompressible-ideal-gas
-                                                                                                                                                                y
-                                                                                                                                                                piecewise-linear
-                                                                                                                                                                2
-                                                                                                                                                                298.15
-                                                                                                                                                                1007
-                                                                                                                                                                323.15
-                                                                                                                                                                1008
-                                                                                                                                                                y
-                                                                                                                                                                piecewise-linear
-                                                                                                                                                                2
-                                                                                                                                                                298.15
-                                                                                                                                                                0.02606
-                                                                                                                                                                323.15
-                                                                                                                                                                0.02788
-                                                                                                                                                                y
-                                                                                                                                                                piecewise-linear
-                                                                                                                                                                2
-                                                                                                                                                                273.15
-                                                                                                                                                                1.72E-05
-                                                                                                                                                                433.15
-                                                                                                                                                                2.45E-05
-                                                                                                                                                                n
-                                                                                                                                                                n
-                                                                                                                                                                n
-                                                                                                                                                                n
-                                                                                                                                                                n
-                                                                                                                                                                n
-                                                                                                                                                                y
-
- - ==== How do I generate a hardcopy of a window? ==== - -
-                                                                                                                                                                display set-window 1                    ; if window nr. 1 is the window you want to be hardcopied
-                                                                                                                                                                //display/set/windows/scale/form        ; setting the options for the graph (colourmap)
-                                                                                                                                                                "%0.2f"
-                                                                                                                                                                //display/set/color-ramp
-                                                                                                                                                                bgr
-                                                                                                                                                                //display/set/hardcopy/color            ; setting the options for the window<
-                                                                                                                                                                color
-                                                                                                                                                                //display/set/hardcopy/driver
-                                                                                                                                                                tiff
-                                                                                                                                                                //display/set/hardcopy/y-res
-                                                                                                                                                                2400
-                                                                                                                                                                //display/set/hardcopy/x-res
-                                                                                                                                                                3106
-                                                                                                                                                                //display/set/hardcopy/inv
-                                                                                                                                                                no
-                                                                                                                                                                //display/hard
-                                                                                                                                                                filename.tiff
-                                                                                                                                                                //display/set/hardcopy/inv
-                                                                                                                                                                yes
-                                                                                                                                                                //display/hard
-                                                                                                                                                                filename_inv.tiff
-
- - ==== How do I run multiple cases in batch mode? ==== - This could be achieved by running it from journal file. The example journal file that runs two cases is given as: -
-                                                                                                                                                                solve dual-time-iterate yyy1
-                                                                                                                                                                file write-case-data zzz1.cas
-                                                                                                                                                                yes                                            ; for discard cas dialog
-                                                                                                                                                                solve dual-time-iterate yyy2
-                                                                                                                                                                file write-case-data zzz2.cas
-
- - - Another example: -
-                                                                                                                                                                rcd filemname.cas
-                                                                                                                                                                yes
-                                                                                                                                                                it 10000
-                                                                                                                                                                wcd filemname.cas
-                                                                                                                                                                yes
-
- - - Have a look at this discussion: [http://www.cfd-online.com/Forum/fluent_archive_2005.cgi/read/32615 http://www.cfd-online.com/Forum/fluent_archive_2005.cgi/read/32615] - - ==== How do I loop in a journal file? ==== - The best way to loop in a journal file (or the text user interface) is to use one of the Scheme programming language's looping constructs. - - ==== What are the available scheme functions in fluent's environment? ==== - There isn't too much documentation related to fluent and its own implemented scheme language. Here it comes a document written in german that explains some of the variables and functions: [[http://fluid.jku.at/personen/javurek/pdf/scheme.pdf "Fluent Scheme - Mirko J."]]. An english version of it can be found at: [[http://www.polo.ufsc.br/%7Etiagom/documents/scheme-programing.pdf "English Translation"]]. - - A list of fluent variables and functions with some comments and examples is provided here: - *[[Fluent_environment]] - Any contribution to this list is welcome. - - ==== How do I debug a fluent udf using gdb ==== - *[[Udf_debug]] - a short debugging session of a fluent udf using gdb. - - === Tips === - ==== How do I merge two mesh files into one mesh file? ==== - To merge two mesh files the suggested utility is tmerge. The syntax of tmerge is simple.
- utility tmerge -3d file1 file2 finalfile
- To join the two interior faces use:
- Grid->Fuse
- from the menu with Fluent. - - ==== How do I export Fieldview data for postprocessing during iterations? ==== - - This could be done with the help of menu solve->Execute Commands . - Here are two examples: - - '''Steady Case''' - -
-                                                                                                                                                                file/export/fug/File_grid-%n
-                                                                                                                                                                file/export/fud/File_data-%n pressure velocity-magnitude x-velocity y-velocity z-velocity ()
- - '''Unsteady Case''' - -
-                                                                                                                                                                file/export/fug/File_grid-%t
-                                                                                                                                                                file/export/fud/File_data-%t pressure velocity-magnitude x-velocity y-velocity z-velocity ()
- -> you can try healing the volumes
- -> deleting the volume (without lower geometry), healing and uniting the faces, then build the volume again - - ===Q: I am trying to move a node to modify the mesh on a face with mouse. Why in y direction I can only move the node discretely by 0.5 or multiples of 0.5? I can move it continuously in x direction and I would like to do so in y as well. Is there some default value to change? === - - == Other Preprocessing Codes== - === Gambit Turbo === - - === TGrid === - - == Application specific codes == - - === Icepak === - - === Airpak === - - === MixSim === - - == Educational codes == - - === FlowLab === - [http://flowlab.fluent.com] - - [[Category: FAQ's]] {{stub}} {{stub}}

## General Information

### What is meteodyn WT?

Meteodyn WT is an automatic CFD software dedicated to the computation of the wind chracteristics in complex terrains. It is used in the wind energy indeustry for mico-sitting.

### What is UrbaWind?

UrbaWind is an automatic CFD software dedicated to the computation of the wind chracteristics in urban environment. Three modules allow to calculate automatically the small wind energy potential, natural ventilation and pedestrian comfort.

### What do you mean by "automatic CFD software"?

The software are automatic in a sense that: 1. There is only one turbulence model, one equation model which calculates the tubulences mixing length. The model is adapted to the atmospheric boundary layer and is used to model the wind in large fields. 2. The generation of the mesh is integrated in the software, automatic with a refinement around the interest points (wind turbines, mapping) and the buildings. 3. The generation of the boundary conditions is automatic.

### How can I learn meteodyn WT and UrbaWind?

The user manual of the software explains all the functaionalities as well as physical theory. The user manual is provided with licensed version as well as in the demo (downloadable in te website of Meteodyn: http://www.meteodyn.com/en/downloads.html)

## meteodyn WT

1. When I try to install meteodyn WT64 (64 bit version), a message appears: "Unable to satisfy all prerequisites for meteodyn_WT64. Setup cannot continue until all system components have been successfully installed". * This message appears if you have been clicked on the "Setup.exe" file. To install the 64 bit version, you must click on the "WT64_Monoposte_Setup.msi" file. If it is the first time you install meteodyn WT, you must install Framework x64 before by clicking on "NetFx64.exe" file. Refer to Introduction - The 64 bit version.

2. Would it be possible to assign different default locations for the system directories separately of the installation directory to store data on a bigger partition? * No, it is impossible with the actual version. But in the future version, there will be a development to allow that. This improvement will allow to fix the limitation of data storage and the administrator rights problems.

3. Should I save all my sites in meteodyn WT before installing a new version or before uninstalling the application? * No, it is not necessary to save your sites when you want to modify the application installation. Your sites and results are still presents in their locations. The software automatically manage with those during the installation.

### Turbulence

I wonder if meteodyn WT use a k-e model for turbulence? * The turbulent fluxes in meteodyn WT are modeled by using the concept of "turbulent viscosity" considering a linear relationship between turbulent fluxes and the mean velocities gradients, as it is done in the k-e model. The turbulent viscosity is the product of a speed scale (square-root of the turbulent kinetic energy) and a length scale. The turbulent kinetic energy is computed as in the k-e model with a transport equation. The difference with the k-e model is that the length scale is not computed from the k-e dissipation equation but from empirical relationships deduced from numerous measurements in the atmospheric surface layer. The k-e model is not fitted for atmospheric flows because it cannot consider the large scales of the turbulence. In this way, meteodyn WT gets more realistic values of the turbulent viscosity.

Moreover, meteodyn WT takes into account the anisotropy of the turbulent viscosity in the atmosphere, particularly for the lateral turbulence (wind directions fluctuations). The stability effects and high roughness effects are also considered in the determination of the turbulent viscosity.

### Wind Energy

What kind of model is used for computing the wake effects? * meteodyn WT uses a modified Park model. The wake decay constant is directly got from the turbulent intensity computed at the wind turbine generating the wake, instead (as in standard Park model) of evaluating it from the local roughness.

### Meteorology

What is done in meteodyn WT to deal with the thermal effects in the boundary layer? Is this done by using an energy equation to model buoyancy in the flow? * Taking into account the thermal effects by introducing an energy equation would introduce some additional parameters and unknown variables which would make the work fastidious for the user (for example: how to know the temperature boundary conditions?). Thus, meteodyn WT considers a more generalist approach. The thermal stability can be varied in the software thanks to a stability parameter. It varies from 0 (very unstable) to 9 (very stable). The parameter 2 refers to the near neutral case. This parameter not only modifies the wind profiles (velocity and turbulence) which enter the domain, but it affects also the way the mixing length used by the turbulence model is computed (this turbulence model was developed in order to handle atmospheric boundary layer problems).

### MESH

1. What type of mesh is used in meteodyn WT? * The mesh is mono-block structured boundary fitted with a refinment around the interest points (wind turbines and mapping)

2. What is the limit of cells number? * A customer just found a limitation for the 64 bit version (around 21 million of cells). We are now working in order to break this limitation soon.

## UrbaWind

### MESH

1. What type of mesh is used in UrbaWind? * The mesh is Cartesian unstructured with a refinment around the buildings and the interest points.