• No results found

CFD software overview comparison, limitations and user interfaces

N/A
N/A
Protected

Academic year: 2021

Share "CFD software overview comparison, limitations and user interfaces"

Copied!
7
0
0

Loading.... (view fulltext now)

Full text

(1)

CFD software overview

comparison, limitations and

user interfaces

Daniel Legendre

Introduction to CFD

Turku, 05.05.2015

05.05.2015 Åbo Akademi University – Thermal and Flow Engineering Laboratory 1

Some useful software

Comsol multiphysics 5.0

Fluent/CFX (Ansys Workbench)

(2)

Ansys Workbench: Fluent 14.5

10.10.2014 Åbo Akademi University – Thermal and Flow Engineering Laboratory 3

https://support.ansys.com/

Test Case Mixer tank

Mixer as source terms

Steady solution

(3)

Comsol

10.10.2014 Åbo Akademi University – Thermal and Flow Engineering Laboratory 5

http://www.comsol.com/support/

Mixing tower

Mixer rotating Mesh

(4)

Open source CFD: OpenFOAM

10.10.2014 Åbo Akademi University – Thermal and Flow Engineering Laboratory 7

http://www.openfoam.org/version2.3.1/

OpenFOAM Top-Level Code

solve(fvm::Laplacian(p) ‐ fvc::div(U));

dU = dt*(‐fvc::div(phi, U) + nu*fvc::Laplacian(U));

U = U + dU;

(5)

The dynamicMeshDict dictionary

Open FOAM

10.10.2014 Åbo Akademi University – Thermal and Flow Engineering Laboratory 9

Why use User Define Functions?

Commercial software is a general-purpose

tool and cannot anticipate all users needs.

Addition of new physical models for academic

research or customer proprietary physics.

(6)

Limitations

UDFs have the following limitations:

Although the UDF capability in ANSYS FLUENT can address a wide range of

applications, it is not possible to address every application using UDFs.

Not all solution

variables or ANSYS FLUENT models can be accessed by UDFs

. If you are unsure

whether a particular problem can be handled using a UDF, contact your technical

support engineer for assistance.

UDFs use and return values specified in SI units.

You may need to update your UDF when you use a new version of ANSYS FLUENT

.

10.10.2014 Åbo Akademi University – Thermal and Flow Engineering Laboratory 11

* // UDF Manual // 1. Overview of User-Defined Functions (UDFs) // 1.2.

Limitations. Ansys 14.5 User Manual.

RECOMMENDATIONS ON GRIDS

 The key recommendation is to ensure smooth grids, avoiding abrupt changes in grid size or shape, as this can lead to a significant loss of accuracy. Hence take good care to:

– Define the computational domain, in order to minimize the influence and interactions between the flow and the far-field conditions. In particular, Place inlet and outlet boundaries as far away as possible from the region of interest. In particular, if uniform far-field conditions are imposed, you should ensure that the boundary is not in a region where the flow may still vary significantly.

– Avoid inlet or outlet boundaries in regions of strong geometrical changes or in regions of recirculation.

 Avoid jumps in grid density or in grid size.

 Avoid highly distorted cells or small grid angles.

 Ensure that the grid stretching is continuous.

 Avoid unstructured tetrahedral meshes in boundary layer regions.

 Refine the grids in regions with high gradients, such as boundary layers, leading edges of airfoils and any region where large changes in flow properties might occur.

 Make sure that the number of points in the boundary layers is sufficient for the expected accuracy. Avoid less than 10 points over the inner part of the boundary layer thickness.

 Monitor the grid quality by adequate mesh parameters, available in most of the grid generators, such as aspect ratio, internal angle, concavity, skewness, negative volume.

(7)

RECOMMENDATIONS ON SOLUTION ASSESSMENT

 Check very carefully the selected boundary conditions for correctness and compatibility with the

physics of the flow you are modeling.

 Verify all the numerical settings and parameters, before launching the CFD run.

 Verify that your initial solution is acceptable for the problem to be solved.

 Monitor the convergence to ensure that you reach machine accuracy. It is recommended to monitor, in addition to the residuals, the convergence of representative quantities of your problem, such as a drag force or coefficient, a velocity, temperature or pressure at selected points in the flow domain.

 Look carefully at the behavior of the residual convergence curve in function of number of iterations. If the behavior is oscillatory, or if the residual does not converge to machine accuracy by showing a limit cycle at a certain level of residual reduction, it tells you that some inaccuracy affects your solution process.

 Check, whenever possible, the grid dependence of the solution by comparing the results obtained on different grid sizes.

 Some quantities are more sensitive than others to error sources. Pressure curves are less sensitive than shear stresses, which in turn are less sensitive than temperature gradients or heat fluxes, which require finer grids for a given accuracy level.

 Reduce the values of parameters controlling convergence, such as the CFL number or some under-relaxation parameter, when available.

10.10.2014 Åbo Akademi University – Thermal and Flow Engineering Laboratory 13

*Source: Hirsch,C. Numerical computation of internal & external flows. Second Edition 2007. Butterworth-Heinemann.

Comparison Table

Ansys ®

Comsol ®

OpenFOAM ®

Graphic User

Interface (GUI)

Simple to use

Simple to use

NO GUI. Unix

Terminal window

Meshing

Relative simple for

standard applications

Relative simple for

standard applications

Needs

implementation by

the user

Personalization of the

code

UDF’s C++, python

UDF’s Java and matlab Direct modifications

to the code. C++,

python...

Solver stability

Very stable and

reliable solutions

Stable and reliable

solutions

Requires user

knowledge in

numerical methods

Programming skills

With UDF’s C++ and

python. For the GUI

not required

Basic even with UDF’s.

For the GUI not

required

C++ and python.

References

Related documents

T8 tractors fitted with Tier 4A compliant engines offer a 17% reduced overall operating cost thanks to improved fuel efficiency, 100% longer service intervals, now up to 600

explained that it was "immediately apparent that the premise of these decisions [cases from other circuits with similar holdings] is that in each case the defendant

In order to implement holistic GRC management, companies need to build on existing compliance approaches, gradually developing a holistic approach based on a company- wide

Ve třetí, nejrozsáhlejší části, se věnuji metodám, postupům a ukazatelům finanční analýzy, mezi které patří absolutní ukazatele, poměrové ukazatele,

– (Scholarship programme for master’s students) – Åbo Akademi University scholarships for students.. – Scholarships for students at ÅA School of Business and Economics –

1.12.2014 Åbo Akademi Univ - Thermal and Flow Engineering Piispankatu 8, 20500 Turku 17/24 Heat pipes: Loop heat pipe (LHP).  Very important: the compensation chamber, which

raised: 1) to study the interaction and heterologous IVF parameters using dolphin spermatozoa and zona-intact cow and murine oocytes; and 2) to study sperm maturation,

The GIS expressive functions of spatial analysis, query and visualization not only show overall situation and spatial distribution pattern about the planting