Chapter 13 Solver .out File and CCL

Slides:



Advertisements
Similar presentations
What is GAMS?. While they are not NLP solvers, per se, attention should be given to modeling languages like: GAMS- AIMMS-
Advertisements

Lecture 2 Introduction to C Programming
Introduction to C Programming
 2000 Prentice Hall, Inc. All rights reserved. Chapter 2 - Introduction to C Programming Outline 2.1Introduction 2.2A Simple C Program: Printing a Line.
Introduction to C Programming
 2007 Pearson Education, Inc. All rights reserved Introduction to C Programming.
Introduction to C Programming
Basic Elements of C++ Chapter 2.
Fundamentals of Python: From First Programs Through Data Structures
Computer Science 101 Introduction to Programming.
Chapter Seven Advanced Shell Programming. 2 Lesson A Developing a Fully Featured Program.
Fundamentals of Python: First Programs
1 Lab Session-III CSIT-120 Fall 2000 Revising Previous session Data input and output While loop Exercise Limits and Bounds Session III-B (starts on slide.
Fortran 1- Basics Chapters 1-2 in your Fortran book.
Copyright © 2012 Pearson Education, Inc. Publishing as Pearson Addison-Wesley C H A P T E R 2 Input, Processing, and Output.
Computer Science 101 Introduction to Programming.
15-1 ANSYS, Inc. Proprietary © 2009 ANSYS, Inc. All rights reserved. April 28, 2009 Inventory # Chapter 15 Review and Tips Introduction to CFX.
Input, Output, and Processing
© Copyright 1992–2004 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. Chapter 2 Chapter 2 - Introduction to C Programming.
Getting Started with MATLAB 1. Fundamentals of MATLAB 2. Different Windows of MATLAB 1.
Introduction to Programming with RAPTOR
What does C store? >>A = [1 2 3] >>B = [1 1] >>[C,D]=meshgrid(A,B) c) a) d) b)
Copyright © 2012 Pearson Education, Inc. Publishing as Pearson Addison-Wesley C H A P T E R 2 Input, Processing, and Output.
Lecture 2: Introduction to C Programming. OBJECTIVES In this lecture you will learn:  To use simple input and output statements.  The fundamental data.
Chapter 3 MATLAB Fundamentals Introduction to MATLAB Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
CONTENTS Processing structures and commands Control structures – Sequence Sequence – Selection Selection – Iteration Iteration Naming conventions – File.
CFX-10 Introduction Lecture 1.
Lecture 26: Reusable Methods: Enviable Sloth. Creating Function M-files User defined functions are stored as M- files To use them, they must be in the.
 2008 Pearson Education, Inc. All rights reserved JavaScript: Introduction to Scripting.
Introduction to Python Dr. José M. Reyes Álamo. 2 Three Rules of Programming Rule 1: Think before you program Rule 2: A program is a human-readable set.
Overview Excel is a spreadsheet, a grid made from columns and rows. It is a software program that can make number manipulation easy and somewhat painless.
© Copyright 1992–2004 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Chapter 2 - Introduction to C Programming Outline.
CHAPTER 3 COMPLETING THE PROBLEM- SOLVING PROCESS AND GETTING STARTED WITH C++ An Introduction to Programming with C++ Fifth Edition.
13-1 ANSYS, Inc. Proprietary © 2009 ANSYS, Inc. All rights reserved. April 28, 2009 Inventory # Chapter 13 Solver.out File and CCL Introduction to.
1 Lecture 2 - Introduction to C Programming Outline 2.1Introduction 2.2A Simple C Program: Printing a Line of Text 2.3Another Simple C Program: Adding.
LINGO TUTORIAL.
C++ LANGUAGE MULTIPLE CHOICE QUESTION
Formulas, Functions, and other Useful Features
Chapter Topics The Basics of a C++ Program Data Types
Topics Designing a Program Input, Processing, and Output
Topics Introduction to Functions Defining and Calling a Void Function
Chapter 6 JavaScript: Introduction to Scripting
Data Types Variables are used in programs to store items of data e.g a name, a high score, an exam mark. The data stored in a variable is entered from.
Chapter 2 - Introduction to C Programming
Lecture 7: Repeating a Known Number of Times
Basic Elements of C++.
* Lecture # 7 Instructor: Rida Noor Department of Computer Science
Introduction to Scripting
Other Kinds of Arrays Chapter 11
Functions CIS 40 – Introduction to Programming in Python
Chapter 2 - Introduction to C Programming
Workshop 9 Scripting and Batch Processing
Basic Elements of C++ Chapter 2.
Computer Programming.
Creating and Modifying Queries
Chapter 2 - Introduction to C Programming
Chapter 2 - Introduction to C Programming
Introduction to C++ Programming
Chapter 2 - Introduction to C Programming
T. Jumana Abu Shmais – AOU - Riyadh
Algorithm Discovery and Design
Introduction to Advanced UNIX
Chapter 2 - Introduction to C Programming
Topics Introduction to Functions Defining and Calling a Function
Boolean Expressions to Make Comparisons
Topics Designing a Program Input, Processing, and Output
Topics Designing a Program Input, Processing, and Output
An Introduction to Programming with C++ Fifth Edition
Chapter 2 - Introduction to C Programming
Introduction to C Programming
Presentation transcript:

Chapter 13 Solver .out File and CCL Introduction to CFX

Solver Output File Produced by the ANSYS CFX-Solver and contains information about your simulation: a) Model set-up b) The state of the solution during the run c) Job statistics for the particular run Now lets take a detailed look at an out file… .cfx, .def, .res CFX-Pre .cfx .def .out CFX-Solver .res .gtm, .def CFX-Post

a) Model Setup Solver Information The out file

Physics definition CFX Command Language (CCL) a) Model Setup Physics definition CFX Command Language (CCL)

b) Interpolator If an Initial Values file is provided, the Interpolator will run to copy / interpolate variables … Memory requirements shown here are for the interpolator only Details of the interpolation process are shown …

c) Partitioner If solving in parallel the Partitioner will run to divide up the simulation into multiple partitions … Memory requirements shown here are for the partitioner only … Details of the partitioning process are shown

The start of the Solver process d) Solver The start of the Solver process … Memory requirements shown here are for the Solver. If memory errors occur check if it’s the Interpolator, Partitioner or Solver process … 188 MB of RAM allocated Mesh quality checks, mesh statistics and GGI intersection details are shown here

e) The State of the Solution Diagnostics shown as the solver iterates towards a solution The first column is the average number of iterations the linear solvers attempted to obtain the specified linear equation convergence criteria (within a specified number of iterations). The second column gives the normalized residuals for the solutions to the linear equation. The last column can have one of four entries: * indicates that there was a numerical floating point exception and this resulted in the failure of the linear solvers. F indicates that the linear solvers did not reduce the residuals (i.e., the solution was diverging), but the linear solvers may carry on if the divergence is not catastrophic. ok indicates that the residuals were reduced, but that the degree of reduction did not meet the specified criteria. OK indicates that the specified convergence criteria for the reduction of residuals was achieved. Upper case “OK” is good. Lower case “ok” means you’re on the limit. “F” means failed to solve the equation. Reducing the timestep may help avoid “ok” and “F”. The first few iterations may show “ok” and “F” and can be ignored as long as they go away

Equation Imbalance in domain f) Final Imbalances When the solution finishes the Imbalances are shown Equation Imbalance in domain

g) Other Solution Data Other data printed at the end of the out file include Viscous and Pressure forces and torques on walls, min / max variable values and detailed CPU requirements

Key Point The .out file contains information on the physics, solution progress, and execution control.

CCL Command Interpreter What is CCL? CFX Command Language object definition language which underlies all CFX products Object parameters define the “state” of an object GUIs present object parameters in a contextual manner (parameters shown/hidden based on GUI selections) Allows for easy modifications E.g. modifying an inlet velocity at a boundary Advanced functionality (without complexity) i.e. loops and logic User Input/Interface CCL CCL Command Interpreter Processing Engine

CCL Statements can be classified into three categories: CCL Instruction Types CCL Statements can be classified into three categories: Object and parameter definitions Actions Power Syntax 1. Example of Parameter Definition:

CCL Instruction Types 2. Example of an Action Command: A CFX-Post session file which includes a set of actions. 3. Example of Power Syntax: Lines of Power Syntax are identified in a CCL file by a special character “!” at the start of each line.

Data Hierarchy Terminology: The object Flow is the parent of the object Domain, and this is Flow Analysis 1 Terminology: Parameter Name = Parameter Value As long as the parameters are of the same object, order is unimportant An object started must be ended CCL follows a data hierarchy. In order to specify the Temperature, the associated parents (Boundary, Domain, Flow) must be included If data is set in one place and modified in another, the latter definition overrides the first

Syntax The syntax rules of CCL are similar to many programming languages. Below are a few syntax rules but for a complete list, please search the help documentation (CCL Syntax) Case Sensitivity Everything in the file is sensitive to case. Effect of spaces Spaces appearing before or after a name are not considered to be part of the name. Single spaces appearing inside a name are significant. Multiple spaces and tabs appearing inside a name are treated as a single space. CCL names definition In simple syntax, a CCL name must be at least one character. This first character must be alphabetic; there may be any number of subsequent characters and these can be alphabetic, numeric, space or tab. Continued on next slide… CASE SENSITIVITY Everything in the file is sensitive to case. EFFECT OF SPACES Spaces appearing before or after a name are not considered to be part of the name. Single spaces appearing inside a name are significant. Multiple spaces and tabs appearing inside a name are treated as a single space. CCL NAMES DEFINITION In simple syntax, a CCL name must be at least one character. This first character must be alphabetic; there may be any number of subsequent characters and these can be alphabetic, numeric, space or tab. PARAMETER VALUES STRING The characters $ and # have a special meaning. A string beginning with $ is evaluated as a Power Syntax variable, even if it occurs within a simple syntax statement. The characters such as [, ],{ and } are special only if used in conjunction with $. Following a $, such characters terminate the preceding Perl variable name STRING LIST A list of string items separated by commas. e.g names = one, two, three, four INTEGER If a real is specified when an integer is needed, the real is rounded to the nearest integer. REAL a = 12.24 a = 1.224E01 a = 12.24 [m s^-1] REAL LIST All items in the list must have the same dimensions LOGICAL Several forms are acceptable: YES, TRUE, 1 or ON are all equivalent; NO or FALSE or 0 or OFF are all equivalent; initial letter variants Y, T, N, F are accepted

Syntax Parameter Values Continuation character \ STRING STRING LIST The characters $ and # have a special meaning. A string beginning with $ is evaluated as a Power Syntax variable, even if it occurs within a simple syntax statement. The characters such as [, ],{ and } are special only if used in conjunction with $. Following a $, such characters terminate the preceding Perl variable name STRING LIST A list of string items separated by commas. e.g names = one, two, three, four INTEGER If a real is specified when an integer is needed, the real is rounded to the nearest integer. REAL a = 12.24 a = 1.224E01 a = 12.24 [m s^-1] REAL LIST All items in the list must have the same dimensions LOGICAL Several forms are acceptable: YES, TRUE, 1 or ON are all equivalent; NO or FALSE or 0 or OFF are all equivalent; initial letter variants Y, T, N, F are accepted Continuation character \ CASE SENSITIVITY Everything in the file is sensitive to case. EFFECT OF SPACES Spaces appearing before or after a name are not considered to be part of the name. Single spaces appearing inside a name are significant. Multiple spaces and tabs appearing inside a name are treated as a single space. CCL NAMES DEFINITION In simple syntax, a CCL name must be at least one character. This first character must be alphabetic; there may be any number of subsequent characters and these can be alphabetic, numeric, space or tab. PARAMETER VALUES STRING The characters $ and # have a special meaning. A string beginning with $ is evaluated as a Power Syntax variable, even if it occurs within a simple syntax statement. The characters such as [, ],{ and } are special only if used in conjunction with $. Following a $, such characters terminate the preceding Perl variable name STRING LIST A list of string items separated by commas. e.g names = one, two, three, four INTEGER If a real is specified when an integer is needed, the real is rounded to the nearest integer. REAL a = 12.24 a = 1.224E01 a = 12.24 [m s^-1] REAL LIST All items in the list must have the same dimensions LOGICAL Several forms are acceptable: YES, TRUE, 1 or ON are all equivalent; NO or FALSE or 0 or OFF are all equivalent; initial letter variants Y, T, N, F are accepted

CCL Examples CCL is used throughout CFX and other CFX products, a few examples are: CFX-Pre: Physics definition, Session Files CFX-Solve: Command File (echoed in the OUT file) CFX-Post : State files, Session Files CFX-TurboGrid: State Files

CFX-Pre

CFX-Solver / .out File

CFD-Post

Quick Modifications DEF RES Users can modify a .def file manually using CCL instead of using the CFX-Pre GUI Two alternate methods of modifying a DEF file: Solver GUI Command Lines CFX Pre Reload .CFX or .DEF file Modify Settings DEF CFX Solver RES

Quick Modifications SOLVER METHOD Modify Settings DEF CFX Solver RES

Quick Modifications DEF RES COMMAND LINE METHOD Modify Settings In the CFX-Launcher window, click “Tools > Command Line” In command screen type  cfx5cmds –read –def filename.def –text ccl1 Edit ccl1 in notepad and save In command screen type  cfx5cmds –write –def filename.def –text ccl1 Modify Settings DEF CFX Solver RES

Quick Modifications Using a CCL file Create a text file with modified CCL “Save As” .ccl file, (e.g. “bc1.ccl”) On the Solver tab of the Run Definition form in the Solver manager, enter an Argument as follows: -ccl bc1.ccl Or, start the solution from the command line, using: cfx5solve –def run.def –ccl bc1.ccl

Key Point CCL is the language which links the user with the software. Sometimes, it is more efficient to bypass the GUI and manipulate the CCL manually.