13-1 ANSYS, Inc. Proprietary © 2009 ANSYS, Inc. All rights reserved. April 28, 2009 Inventory #002598 Chapter 13 Solver.out File and CCL Introduction to.

Slides:



Advertisements
Similar presentations
WS9-1 ANSYS, Inc. Proprietary © 2009 ANSYS, Inc. All rights reserved. April 28, 2009 Inventory # Workshop 9 Scripting and Batch Processing Introduction.
Advertisements

D-1 ANSYS, Inc. Proprietary © 2009 ANSYS, Inc. All rights reserved. April 28, 2009 Inventory # Appendix D Profile Boundary Conditions Introduction.
Workshop 6 Modeling of Catalytic Convertor
Workshop 5 Centrifugal Pump
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
Workshop 1 Mixing T-Junction
 2007 Pearson Education, Inc. All rights reserved Introduction to C Programming.
Introduction to C Programming
Starting Out with C++: Early Objects 5/e © 2006 Pearson Education. All Rights Reserved Starting Out with C++: Early Objects 5 th Edition Chapter 1 Introduction.
Basic Elements of C++ Chapter 2.
CSC 8310 Programming Languages Meeting 2 September 2/3, 2014.
Computer Science 101 Introduction to Programming.
Chapter Seven Advanced Shell Programming. 2 Lesson A Developing a Fully Featured Program.
Chapter 11 CFX Expression Language (CEL)
Alternate Version of STARTING OUT WITH C++ 4 th Edition Chapter 1 Introduction to Computers and Programming.
CSC 125 Introduction to C++ Programming Chapter 1 Introduction to Computers and Programming.
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.
CIS Computer Programming Logic
Chapter 9 CAD & Parameters
Introduction to Advanced UNIX March Kevin Keay.
Workshop 4 Flow Through Porous Media
Copyright © 2012 Pearson Education, Inc. Publishing as Pearson Addison-Wesley C H A P T E R 2 Input, Processing, and Output.
Introduction to Computational Linguistics Programming I.
Computer Science 101 Introduction to Programming.
Catalytic Converter Simulation
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.
Appendix B Turbo Pre and Post
Introduction to Programming with RAPTOR
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.
6-1 ANSYS, Inc. Proprietary © 2009 ANSYS, Inc. All rights reserved. April 28, 2009 Inventory # Chapter 6 Day 1 Review and Tips Introduction to CFX.
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.
Copyright 2003 Scott/Jones Publishing Standard Version of Starting Out with C++, 4th Edition Chapter 1 Introduction to Computers and Programming.
 2008 Pearson Education, Inc. All rights reserved JavaScript: Introduction to Scripting.
4-1 ANSYS, Inc. Proprietary © 2009 ANSYS, Inc. All rights reserved. April 28, 2009 Inventory # Chapter 4 Solver Settings Introduction to CFX.
Python Let’s get started!.
© Copyright 1992–2004 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Chapter 2 - Introduction to C Programming Outline.
1-1 ANSYS, Inc. Proprietary © 2009 ANSYS, Inc. All rights reserved. April 28, 2009 Inventory # Chapter 1 ANSYS Workbench ANSYS Meshing Application.
Internet & World Wide Web How to Program, 5/e © by Pearson Education, Inc. All Rights Reserved.
Chapter – 8 Software Tools.
CHAPTER 3 COMPLETING THE PROBLEM- SOLVING PROCESS AND GETTING STARTED WITH C++ An Introduction to Programming with C++ Fifth Edition.
1 Agenda  Unit 7: Introduction to Programming Using JavaScript T. Jumana Abu Shmais – AOU - Riyadh.
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.
Version 1.0 3/23/2007 © 2007 ANSYS, Inc. All rights reserved. Inventory # W0-1 BladeModeler 11.0 ANSYS, Inc. Proprietary ANSYS TurboSystem Practical.
LINGO TUTORIAL.
Chapter Topics The Basics of a C++ Program Data Types
Topics Designing a Program Input, Processing, and Output
Chapter 6 JavaScript: Introduction to Scripting
Chapter 13 Solver .out File and CCL
Chapter 2 - Introduction to C Programming
Basic Elements of C++.
* Lecture # 7 Instructor: Rida Noor Department of Computer Science
The Selection Structure
Chapter 2 - Introduction to C Programming
Workshop 9 Scripting and Batch Processing
Basic Elements of C++ Chapter 2.
T. Jumana Abu Shmais – AOU - Riyadh
Introduction to Advanced UNIX
Boolean Expressions to Make Comparisons
Topics Designing a Program Input, Processing, and Output
Topics Designing a Program Input, Processing, and Output
Presentation transcript:

13-1 ANSYS, Inc. Proprietary © 2009 ANSYS, Inc. All rights reserved. April 28, 2009 Inventory # Chapter 13 Solver.out File and CCL Introduction to CFX

Out File 13-2 ANSYS, Inc. Proprietary © 2009 ANSYS, Inc. All rights reserved. April 28, 2009 Inventory # Training Manual 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-Solver CFX-Pre CFX-Post.def.res.cfx.cfx,.def,.res.out.gtm,.def

Out File 13-3 ANSYS, Inc. Proprietary © 2009 ANSYS, Inc. All rights reserved. April 28, 2009 Inventory # Training Manual Solver Information a) Model Setup The out file

Out File 13-4 ANSYS, Inc. Proprietary © 2009 ANSYS, Inc. All rights reserved. April 28, 2009 Inventory # Training Manual Physics definition CFX Command Language (CCL) a) Model Setup

Out File 13-5 ANSYS, Inc. Proprietary © 2009 ANSYS, Inc. All rights reserved. April 28, 2009 Inventory # Training Manual If an Initial Values file is provided, the Interpolator will run to copy / interpolate variables b) Interpolator ………… ………… Memory requirements shown here are for the interpolator only Details of the interpolation process are shown

Out File 13-6 ANSYS, Inc. Proprietary © 2009 ANSYS, Inc. All rights reserved. April 28, 2009 Inventory # Training Manual If solving in parallel the Partitioner will run to divide up the simulation into multiple partitions c) Partitioner ………… ………… Memory requirements shown here are for the partitioner only Details of the partitioning process are shown

Out File 13-7 ANSYS, Inc. Proprietary © 2009 ANSYS, Inc. All rights reserved. April 28, 2009 Inventory # Training Manual d) Solver ………… ………… Mesh quality checks, mesh statistics and GGI intersection details are shown here 188 MB of RAM allocated 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

Out File 13-8 ANSYS, Inc. Proprietary © 2009 ANSYS, Inc. All rights reserved. April 28, 2009 Inventory # Training Manual Diagnostics shown as the solver iterates towards a solution 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 e) The State of the Solution

Out File 13-9 ANSYS, Inc. Proprietary © 2009 ANSYS, Inc. All rights reserved. April 28, 2009 Inventory # Training Manual When the solution finishes the Imbalances are shown Equation Imbalance in domain f) Final Imbalances

Out File ANSYS, Inc. Proprietary © 2009 ANSYS, Inc. All rights reserved. April 28, 2009 Inventory # Training Manual 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 g) Other Solution Data

Out File ANSYS, Inc. Proprietary © 2009 ANSYS, Inc. All rights reserved. April 28, 2009 Inventory # Training Manual Key Point The.out file contains information on the physics, solution progress, and execution control.

CCL ANSYS, Inc. Proprietary © 2009 ANSYS, Inc. All rights reserved. April 28, 2009 Inventory # Training Manual 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 CCL Command Interpreter User Input/Interface Processing Engine CCL What is CCL?

CCL ANSYS, Inc. Proprietary © 2009 ANSYS, Inc. All rights reserved. April 28, 2009 Inventory # Training Manual CCL Statements can be classified into three categories: 1.Object and parameter definitions 2.Actions 3.Power Syntax 1. Example of Parameter Definition: CCL Instruction Types

CCL ANSYS, Inc. Proprietary © 2009 ANSYS, Inc. All rights reserved. April 28, 2009 Inventory # Training Manual 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. CCL Instruction Types

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

CCL ANSYS, Inc. Proprietary © 2009 ANSYS, Inc. All rights reserved. April 28, 2009 Inventory # Training Manual 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… Syntax

CCL ANSYS, Inc. Proprietary © 2009 ANSYS, Inc. All rights reserved. April 28, 2009 Inventory # Training Manual – 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 = a = 1.224E01 a = [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 \ Syntax

CCL ANSYS, Inc. Proprietary © 2009 ANSYS, Inc. All rights reserved. April 28, 2009 Inventory # Training Manual 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 CCL Examples

CCL ANSYS, Inc. Proprietary © 2009 ANSYS, Inc. All rights reserved. April 28, 2009 Inventory # Training Manual CFX-Pre

CCL ANSYS, Inc. Proprietary © 2009 ANSYS, Inc. All rights reserved. April 28, 2009 Inventory # Training Manual CFX-Solver /.out File

CCL ANSYS, Inc. Proprietary © 2009 ANSYS, Inc. All rights reserved. April 28, 2009 Inventory # Training Manual CFD-Post

CCL ANSYS, Inc. Proprietary © 2009 ANSYS, Inc. All rights reserved. April 28, 2009 Inventory # Training Manual 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 DEF CFX Solver RES Reload.CFX or.DEF file Modify Settings Quick Modifications

CCL ANSYS, Inc. Proprietary © 2009 ANSYS, Inc. All rights reserved. April 28, 2009 Inventory # Training Manual SOLVER METHOD DEF CFX Solver RES Modify Settings Quick Modifications

CCL ANSYS, Inc. Proprietary © 2009 ANSYS, Inc. All rights reserved. April 28, 2009 Inventory # Training Manual COMMAND LINE METHOD 1.In the CFX-Launcher window, click “Tools > Command Line” 2.In command screen type  cfx5cmds –read –def filename.def –text ccl1 3.Edit ccl1 in notepad and save 4.In command screen type  cfx5cmds –write –def filename.def –text ccl1 DEF CFX Solver RES Modify Settings Quick Modifications

CCL ANSYS, Inc. Proprietary © 2009 ANSYS, Inc. All rights reserved. April 28, 2009 Inventory # Training Manual 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

CCL ANSYS, Inc. Proprietary © 2009 ANSYS, Inc. All rights reserved. April 28, 2009 Inventory # Training Manual 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. Key Point