Cfx12 13 Ccl Outfile

Embed Size (px)

Citation preview

  • 7/29/2019 Cfx12 13 Ccl Outfile

    1/26

    13-1ANSYS, Inc. Proprietary 2009 ANSYS, Inc. All rights reserved.

    April 28, 2009Inventory #002598

    Chapter 13

    Solver .out File and CCL

    Introduction to CFX

  • 7/29/2019 Cfx12 13 Ccl Outfile

    2/26

    Out Fi le

    13-2ANSYS, Inc. Proprietary 2009 ANSYS, Inc. All rights reserved.

    April 28, 2009Inventory #002598

    Training ManualSolver 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

  • 7/29/2019 Cfx12 13 Ccl Outfile

    3/26

    Out Fi le

    13-3ANSYS, Inc. Proprietary 2009 ANSYS, Inc. All rights reserved.

    April 28, 2009Inventory #002598

    Training Manual

    SolverInformation

    a) Model Setup

    The out file

  • 7/29/2019 Cfx12 13 Ccl Outfile

    4/26

    Out Fi le

    13-4ANSYS, Inc. Proprietary 2009 ANSYS, Inc. All rights reserved.

    April 28, 2009Inventory #002598

    Training Manual

    Physics definitionCFX Command Language

    (CCL)

    a) Model Setup

  • 7/29/2019 Cfx12 13 Ccl Outfile

    5/26

    Out Fi le

    13-5ANSYS, Inc. Proprietary 2009 ANSYS, Inc. All rights reserved.

    April 28, 2009Inventory #002598

    Training Manual

    If an Initial Values file is

    provided, the Interpolatorwill run to copy /

    interpolate variables

    b) Interpolator

    Memory requirementsshown here are forthe interpolator only

    Details of theinterpolation process

    are shown

  • 7/29/2019 Cfx12 13 Ccl Outfile

    6/26

    Out Fi le

    13-6ANSYS, Inc. Proprietary 2009 ANSYS, Inc. All rights reserved.

    April 28, 2009Inventory #002598

    Training Manual

    If solving in parallel the

    Partitioner will run todivide up the simulationinto multiple partitions

    c) Partitioner

    Memory requirementsshown here are for the

    partitioner only

    Details of the partitioningprocess are shown

  • 7/29/2019 Cfx12 13 Ccl Outfile

    7/26

    Out Fi le

    13-7ANSYS, Inc. Proprietary 2009 ANSYS, Inc. All rights reserved.

    April 28, 2009Inventory #002598

    Training Manuald) Solver

    Mesh quality checks,mesh statistics and

    GGI intersectiondetails are shown

    here

    188 MB ofRAM allocated

    The start of the Solver

    process

    Memory requirementsshown here are for the

    Solver. If memory errorsoccur check if its the

    Interpolator, Partitioner orSolver process

  • 7/29/2019 Cfx12 13 Ccl Outfile

    8/26

    Out Fi le

    13-8ANSYS, Inc. Proprietary 2009 ANSYS, Inc. All rights reserved.

    April 28, 2009Inventory #002598

    Training Manual

    Diagnostics shown as the solver iterates towards a solution

    Upper case OK is good. Lower case okmeans youre on the limit. F means failed

    to solve the equation. Reducing thetimestep 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

  • 7/29/2019 Cfx12 13 Ccl Outfile

    9/26

    Out Fi le

    13-9ANSYS, Inc. Proprietary 2009 ANSYS, Inc. All rights reserved.

    April 28, 2009Inventory #002598

    Training Manual

    When the solution finishes the Imbalances are shown

    Equation Imbalance indomain

    f) Final Imbalances

  • 7/29/2019 Cfx12 13 Ccl Outfile

    10/26

    Out Fi le

    13-10ANSYS, Inc. Proprietary 2009 ANSYS, Inc. All rights reserved.

    April 28, 2009Inventory #002598

    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

  • 7/29/2019 Cfx12 13 Ccl Outfile

    11/26

    Out Fi le

    13-11ANSYS, Inc. Proprietary 2009 ANSYS, Inc. All rights reserved.

    April 28, 2009Inventory #002598

    Training ManualKey Point

    The .out file contains information on the physics, solution

    progress, and execution control.

  • 7/29/2019 Cfx12 13 Ccl Outfile

    12/26

    CCL

    13-12ANSYS, Inc. Proprietary 2009 ANSYS, Inc. All rights reserved.

    April 28, 2009Inventory #002598

    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 acontextual manner (parametersshown/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 CommandInterpreter

    User Input/Interface

    Processing Engine

    CCL

    What is CCL?

  • 7/29/2019 Cfx12 13 Ccl Outfile

    13/26

    CCL

    13-13ANSYS, Inc. Proprietary 2009 ANSYS, Inc. All rights reserved.

    April 28, 2009Inventory #002598

    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

  • 7/29/2019 Cfx12 13 Ccl Outfile

    14/26

    CCL

    13-14ANSYS, Inc. Proprietary 2009 ANSYS, Inc. All rights reserved.

    April 28, 2009Inventory #002598

    Training Manual

    2. Example of an Action Command:

    A CFX-Post session file which includes a set ofactions.

    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

  • 7/29/2019 Cfx12 13 Ccl Outfile

    15/26

    CCL

    13-15ANSYS, Inc. Proprietary 2009 ANSYS, Inc. All rights reserved.

    April 28, 2009Inventory #002598

    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 sameobject, 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 Flowis the parent of

    the object Domain, and this is Flow Analysis 1

    Data Hierarchy

  • 7/29/2019 Cfx12 13 Ccl Outfile

    16/26

    CCL

    13-16ANSYS, Inc. Proprietary 2009 ANSYS, Inc. All rights reserved.

    April 28, 2009Inventory #002598

    Training Manual

    The syntax rules of CCL are similar to many programming

    languages. Below are a few syntax rules but for acomplete list, please search the help documentation (CCLSyntax) 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 ofthe 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

  • 7/29/2019 Cfx12 13 Ccl Outfile

    17/26

    CCL

    13-17ANSYS, Inc. Proprietary 2009 ANSYS, Inc. All rights reserved.

    April 28, 2009Inventory #002598

    Training Manual

    Parameter Values STRING

    The characters $ and # have a special meaning. A string beginning with $ is evaluated asa 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 $. Followinga $, such characters terminate the preceding Perl variable name

    STRING LISTA 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.

    REALa = 12.24a = 1.224E01a = 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 \

    Syntax

  • 7/29/2019 Cfx12 13 Ccl Outfile

    18/26

    CCL

    13-18ANSYS, Inc. Proprietary 2009 ANSYS, Inc. All rights reserved.

    April 28, 2009Inventory #002598

    Training Manual

    CCL is used throughout CFX and other CFX products, a fewexamples 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

  • 7/29/2019 Cfx12 13 Ccl Outfile

    19/26

    CCL

    13-19ANSYS, Inc. Proprietary 2009 ANSYS, Inc. All rights reserved.

    April 28, 2009Inventory #002598

    Training ManualCFX-Pre

  • 7/29/2019 Cfx12 13 Ccl Outfile

    20/26

    CCL

    13-20ANSYS, Inc. Proprietary 2009 ANSYS, Inc. All rights reserved.

    April 28, 2009Inventory #002598

    Training ManualCFX-Solver / .out File

  • 7/29/2019 Cfx12 13 Ccl Outfile

    21/26

    CCL

    13-21ANSYS, Inc. Proprietary 2009 ANSYS, Inc. All rights reserved.

    April 28, 2009Inventory #002598

    Training ManualCFD-Post

  • 7/29/2019 Cfx12 13 Ccl Outfile

    22/26

    CCL

    13-22ANSYS, Inc. Proprietary 2009 ANSYS, Inc. All rights reserved.

    April 28, 2009Inventory #002598

    Training Manual

    Users can modify a .def filemanually 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

  • 7/29/2019 Cfx12 13 Ccl Outfile

    23/26

    CCL

    13-23ANSYS, Inc. Proprietary 2009 ANSYS, Inc. All rights reserved.

    April 28, 2009Inventory #002598

    Training Manual

    SOLVER METHOD

    DEF

    CFX Solver

    RES

    Modify Settings

    Quick Modifications

    CCL

  • 7/29/2019 Cfx12 13 Ccl Outfile

    24/26

    CCL

    13-24ANSYS, Inc. Proprietary 2009 ANSYS, Inc. All rights reserved.

    April 28, 2009Inventory #002598

    Training Manual

    COMMAND LINE METHOD

    1. In the CFX-Launcher window, click Tools > Command Line

    2. In command screen type cfx5cmdsreaddeff i lename.deftextccl1

    3. Edit ccl1in notepad and save

    4. In command screen type cfx5cmdswritedeff i lename.deftextccl1

    DEF

    CFX Solver

    RES

    Modify Settings

    Quick Modifications

    CCL

  • 7/29/2019 Cfx12 13 Ccl Outfile

    25/26

    CCL

    13-25ANSYS, Inc. Proprietary 2009 ANSYS, Inc. All rights reserved.

    April 28, 2009Inventory #002598

    Training ManualQuick Modifications

    Using a CCL file

    Create a text file with

    modified CCL

    Save As .ccl file, (e.g.

    bc1.ccl)

    On the Solvertab of the Run

    Definition form in the Solver

    manager, enter an Argumentas follows:

    -ccl bc1.ccl

    Or, start the solution from

    the command line, using:

    cfx5solvedef run.defccl

    bc1.ccl

    CCL

  • 7/29/2019 Cfx12 13 Ccl Outfile

    26/26

    CCL

    ANSYS Inc Proprietary April 28 2009

    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