WB Journaling & Scripting Overview

Size: px
Start display at page:

Download "WB Journaling & Scripting Overview"

Transcription

1 WB Journaling & Scripting Overview 1

2 Automatically Record Journals Enable automatic recording Tools -> Options -> Journals and Logs 2

3 Manually Record Journal Do the operations 3

4 Edit Journal 4

5 What is Python? Python is a object-oriented, interpreted, and interactive programming language Python code is interpreted and portable between platforms Python combines remarkable power with very clear syntax It has modules, classes, exceptions, There are interfaces to many system calls and libraries IronPython is the Python Workbench uses IronPython is an implementation of Python for.net, by Microsoft It brings new possibilities to the Python programmers Large.NET users community Many tools: debugging Forums Libraries 5

6 Variables and Syntax Variables Don t need to be pre declared A variable can change type Colon Required at the end of compound statement headers (the first line of an if, while, for, etc.) Whitespace Important only for the indentation level (i.e. the whitespace at the very left of your statements). Case-sensitivity Python is case-sensitive Variable names may mix upper- and lower-case Calling code must match the case exactly Python keywords are case-sensitive too Comments Syntax # 1: # Comment Text after # is ignored in a single line Syntax # 2: Comment Text between pairs is ignored 6! Using a good editor helps a lot!

7 7 Variables and Syntax (2) List The most versatile datatype in Python Comma-separated values between square brackets Operators Arithmetic operators: +, -, /, *, Comparison Operators: ==,!=, >=, Assignment operators: =, +=, -=,... Logical operators: and, or, not Flow Controls If-Else For While Functions begin with the keyword def followed by the function name and parentheses

8 Recommended References Free materials Python download all formats Tutorial and documentation IronPython studio is free Microsoft SDK that allows you to manage your projects and develop using native windows forms Free book - Recommended books Learning Python by Mark Lutz and David Ascher Python Pocket Reference by Mark Lutz IronPython in Action by Michael J.Ford and Christian Muirhead For people wanting to use Iron python to take advantage of the.net framework 8

9 Replay Journal/Run Script Recorded operation is replayed 3 9

10 Replay Journal/Run Script (2) A journal can also be replayed from the command line Add R <filename.wbjn> Add I for interactive mode or B for batch 10

11 Workbench Command Line Options 11 Argument Operation -B Run Workbench in batch mode. The user interface is not displayed and a console window is opened. The functionality of the console window is the same as the Workbench Command Window. -R <ANSYS Workbench script file> Replay the specified Workbench script file on start-up. If specified in conjunction with B, Workbench will start in batch mode, execute the specified script, and shut down at the completion of script execution. -I Run Workbench in interactive mode. This is typically the default, but if specified in conjunction with B, both the user interface and console window are opened. -X Run Workbench interactively and then exit upon completion of script execution. Typically used in conjunction with R. -F <ANSYS Workbench project file> Load the specified Workbench project file on start-up. -E <command> Execute the specified Workbench scripting command on start-up. You can issue multiple commands, separated with semicolons (;), or specify this argument multiple times and the commands will be executed in order.

12 Python Command Window in WB

13 Command Window Command Window supports: Command completion Command history Keyboard shortcuts for cursor navigation and editing 13

14 Project & Data Model Concepts 14

15 Project & Data Model Concepts (2) System: A collection of components that together provide a workflow to achieve an engineering simulation goal. Systems are created from System Templates. 15

16 Project & Data Model Concepts (3) Component: A collection of data and a data editor that work together to achieve a CAE-related task. A Component is represented by a Cell in the Workbench Project Schematic. 16

17 Project & Data Model Concepts (4) Component Data Container: Data unique to an individual component, and the services to manage and manipulate it. 17

18 Project & Data Model Concepts (5) Data Entity: A data structure defined within a data container. A data container often has several data entities. 18

19 Project & Data Model Concepts (6) 19

20 Support for Data-Integrated Application Scripting Languages Data Integrated Applications Mechanical APDL Native Scripting Language APDL Support Journaling with SendCommand Support Scripting with SendCommand Mechanical Jscript Yes DesignModeler Jscript Yes Yes You can insert the SendCommand call into your ANSYS Workbench scripts to drive these data-integrated applications. Meshing Jscript Yes FE Molder Jscript Yes AQWA Jscript Yes ICEM CFD TCL Yes CFX CCL Yes Yes CFD Post CCL Yes Yes FLUENT Scheme Yes Yes PolyFlow N/A IcePak N/A AUTODYN N/A Recording WB journal will record the actions applied during the set up in theses integrated apps. Documentation Reference: // Scripting Guide // Scripting Overview // Journaling and Scripting Capability Overview // Scripting and Data-Integrated Applications *Jscript has limited support within the noted applications. For example, the Jscript interface is not fully documented. 20

21 WB Journal with FLUENT WB Journal captured operations performed in FLUENT via SendCommand Playing this journal file will reproduce the complete project 21

22 WB Journal with Mechanical WB Journal did not capture operations performed in Mechanical Playing this journal file will not reproduce the complete project Using SendCommand operations in Mechanical can be automated This will reproduce the complete project 22

23 Data-Integrated Application SendCommand Example 23

24 Documentation Online Help includes: Overview and How-to Complete command reference Many examples 24

Introduction to Workbench Scripting & Customization ANSYS, Inc. November 29, 2012

Introduction to Workbench Scripting & Customization ANSYS, Inc. November 29, 2012 Introduction to Workbench Scripting & Customization 1 Outline Understanding the Workbench framework WB Journaling and Scripting Different Customization Methods Conclusion 2 Workbench Framework Application

More information

ANSYS Workbench as an Integration Platform for CAE Simulation

ANSYS Workbench as an Integration Platform for CAE Simulation ANSYS Workbench as an Integration Platform for CAE Simulation Judd Kaiser Workbench Framework Product Manager 2010 ANSYS South American Conference October 20, 2010 2010 ANSYS, Inc. All rights reserved.

More information

ANSYS - Workbench Overview. From zero to results. AGH 2014 April, 2014 W0-1

ANSYS - Workbench Overview. From zero to results. AGH 2014 April, 2014 W0-1 ANSYS - Workbench Overview From zero to results 2014 W0-1 Runing ANSYS WEiP ANSYS We are going to work in most advanced ANSYS Workbench W0-2 ANSYS Workbench WEiP What is Workbench? Platform for integration

More information

Introduction to ANSYS DesignXplorer

Introduction to ANSYS DesignXplorer Overview 14. 5 Release Introduction to ANSYS DesignXplorer 1 2013 ANSYS, Inc. September 27, 2013 What is DesignXplorer? DesignXplorer (DX) is a tool that uses response surfaces and direct optimization

More information

Basic Syntax - First Program 1

Basic Syntax - First Program 1 Python Basic Syntax Basic Syntax - First Program 1 All python files will have extension.py put the following source code in a test.py file. print "Hello, Python!";#hello world program run this program

More information

Application Customization Toolkit. Jim Kosloski

Application Customization Toolkit. Jim Kosloski Application Customization Toolkit Jim Kosloski What is ACT? ANSYS ACT is the unified and consistent tool for the customization and expansion of ANSYS products. Using ACT, you can create vertical apps or

More information

Overview of the Ruby Language. By Ron Haley

Overview of the Ruby Language. By Ron Haley Overview of the Ruby Language By Ron Haley Outline Ruby About Ruby Installation Basics Ruby Conventions Arrays and Hashes Symbols Control Structures Regular Expressions Class vs. Module Blocks, Procs,

More information

May 11, ANSYS, Inc. All rights reserved. ANSYS, Inc. Proprietary Inventory #

May 11, ANSYS, Inc. All rights reserved. ANSYS, Inc. Proprietary Inventory # Chapter 1 ANSYS DesignModeler Introduction to Workbench 1-1 ANSYS Workbench Overview ANSYS Workbench comprises the following modules: Simulation for performing structural and thermal analyses using the

More information

INTRODUCTION 1 AND REVIEW

INTRODUCTION 1 AND REVIEW INTRODUTION 1 AND REVIEW hapter SYS-ED/ OMPUTER EDUATION TEHNIQUES, IN. Programming: Advanced Objectives You will learn: Program structure. Program statements. Datatypes. Pointers. Arrays. Structures.

More information

BASH SHELL SCRIPT 1- Introduction to Shell

BASH SHELL SCRIPT 1- Introduction to Shell BASH SHELL SCRIPT 1- Introduction to Shell What is shell Installation of shell Shell features Bash Keywords Built-in Commands Linux Commands Specialized Navigation and History Commands Shell Aliases Bash

More information

JavaScript CS 4640 Programming Languages for Web Applications

JavaScript CS 4640 Programming Languages for Web Applications JavaScript CS 4640 Programming Languages for Web Applications 1 How HTML, CSS, and JS Fit Together {css} javascript() Content layer The HTML gives the page structure and adds semantics Presentation

More information

ANSYS FLUENT GUIDE viviso.com ANSYS FLUENT GUIDE. page 1 / 7

ANSYS FLUENT GUIDE viviso.com ANSYS FLUENT GUIDE. page 1 / 7 page 1 / 7 page 2 / 7 ansys fluent guide pdf FLUENT User's Guide contains detailed information about using FLUENT, including information about the user interface, reading and writing files, defining boundary

More information

Unit E Step-by-Step: Programming with Python

Unit E Step-by-Step: Programming with Python Unit E Step-by-Step: Programming with Python Computer Concepts 2016 ENHANCED EDITION 1 Unit Contents Section A: Hello World! Python Style Section B: The Wacky Word Game Section C: Build Your Own Calculator

More information

4. Structure of a C++ program

4. Structure of a C++ program 4.1 Basic Structure 4. Structure of a C++ program The best way to learn a programming language is by writing programs. Typically, the first program beginners write is a program called "Hello World", which

More information

ANSYS Customization Toolkit: an ACT demo for MAPDL users

ANSYS Customization Toolkit: an ACT demo for MAPDL users ANSYS Customization Toolkit: an ACT demo for MAPDL users Giovanni Federico Ansys UK ltd 1 2015 ANSYS, Inc. May 9, 2016 Agenda What is ACT? ACT demo for APDL users; 2 2015 ANSYS, Inc. May 9, 2016 What is

More information

The Very Basics of the R Interpreter

The Very Basics of the R Interpreter Chapter 2 The Very Basics of the R Interpreter OK, the computer is fired up. We have R installed. It is time to get started. 1. Start R by double-clicking on the R desktop icon. 2. Alternatively, open

More information

Program Organization and Comments

Program Organization and Comments C / C++ PROGRAMMING Program Organization and Comments Copyright 2013 Dan McElroy Programming Organization The layout of a program should be fairly straight forward and simple. Although it may just look

More information

YOLOP Language Reference Manual

YOLOP Language Reference Manual YOLOP Language Reference Manual Sasha McIntosh, Jonathan Liu & Lisa Li sam2270, jl3516 and ll2768 1. Introduction YOLOP (Your Octothorpean Language for Optical Processing) is an image manipulation language

More information

CHAD Language Reference Manual

CHAD Language Reference Manual CHAD Language Reference Manual INTRODUCTION The CHAD programming language is a limited purpose programming language designed to allow teachers and students to quickly code algorithms involving arrays,

More information

CS 112 Introduction to Computing II. Wayne Snyder Computer Science Department Boston University

CS 112 Introduction to Computing II. Wayne Snyder Computer Science Department Boston University CS 112 Introduction to Computing II Wayne Snyder Department Boston University Today: Java expressions and operators concluded Java Statements: Conditionals: if/then, if/then/else Loops: while, for Next

More information

Flow Control: Branches and loops

Flow Control: Branches and loops Flow Control: Branches and loops In this context flow control refers to controlling the flow of the execution of your program that is, which instructions will get carried out and in what order. In the

More information

Engineering Simulation Software for the Offshore, Marine and Wave/Tidal Renewable Energy Industries. Introduction. Nigel Atkinson ANSYS UK Ltd

Engineering Simulation Software for the Offshore, Marine and Wave/Tidal Renewable Energy Industries. Introduction. Nigel Atkinson ANSYS UK Ltd Engineering Simulation Software for the Offshore, Marine and Wave/Tidal Renewable Energy Industries Introduction Nigel Atkinson ANSYS UK Ltd 2010 ANSYS, Inc. All rights reserved. 1 ANSYS, Inc. Proprietary

More information

Using IDLE for

Using IDLE for Using IDLE for 15-110 Step 1: Installing Python Download and install Python using the Resources page of the 15-110 website. Be sure to install version 3.3.2 and the correct version depending on whether

More information

PYTHON. Varun Jain & Senior Software Engineer. Pratap, Mysore Narasimha Raju & TEST AUTOMATION ARCHITECT. CenturyLink Technologies India PVT LTD

PYTHON. Varun Jain & Senior Software Engineer. Pratap, Mysore Narasimha Raju & TEST AUTOMATION ARCHITECT. CenturyLink Technologies India PVT LTD PYTHON Varun Jain & Senior Software Engineer Pratap, Mysore Narasimha Raju & TEST AUTOMATION ARCHITECT CenturyLink Technologies India PVT LTD 1 About Python Python is a general-purpose interpreted, interactive,

More information

Creating a new CDC policy using the Database Administration Console

Creating a new CDC policy using the Database Administration Console Creating a new CDC policy using the Database Administration Console When you start Progress Developer Studio for OpenEdge for the first time, you need to specify a workspace location. A workspace is a

More information

Strategies to Achieve Reliable and Accurate CFD Solutions

Strategies to Achieve Reliable and Accurate CFD Solutions Strategies to Achieve Reliable and Accurate CFD Solutions Mark Keating ANSYS UK 2010 ANSYS, Inc. All rights reserved. 1 ANSYS, Inc. Proprietary Agenda Why develop a CFD strategy? Pre-Processing Strategies

More information

Python I. Some material adapted from Upenn cmpe391 slides and other sources

Python I. Some material adapted from Upenn cmpe391 slides and other sources Python I Some material adapted from Upenn cmpe391 slides and other sources Overview Names & Assignment Data types Sequences types: Lists, Tuples, and Strings Mutability Understanding Reference Semantics

More information

Lecture Set 2: Starting Java

Lecture Set 2: Starting Java Lecture Set 2: Starting Java 1. Java Concepts 2. Java Programming Basics 3. User output 4. Variables and types 5. Expressions 6. User input 7. Uninitialized Variables 0 This Course: Intro to Procedural

More information

Introduction to Python

Introduction to Python Introduction to Python EECS 4415 Big Data Systems Tilemachos Pechlivanoglou tipech@eecs.yorku.ca 2 Background Why Python? "Scripting language" Very easy to learn Interactive front-end for C/C++ code Object-oriented

More information

Introduction to ANSYS ICEM CFD

Introduction to ANSYS ICEM CFD Lecture 1 Introduction to ANSYS ICEM CFD 14.5 Release Introduction to ANSYS ICEM CFD 2012 ANSYS, Inc. April 1, 2013 1 Release 14.5 Purpose/Goals Ansys ICEM CFD is a general purpose grid generating program

More information

Lecture Set 2: Starting Java

Lecture Set 2: Starting Java Lecture Set 2: Starting Java 1. Java Concepts 2. Java Programming Basics 3. User output 4. Variables and types 5. Expressions 6. User input 7. Uninitialized Variables 0 This Course: Intro to Procedural

More information

Week - 01 Lecture - 04 Downloading and installing Python

Week - 01 Lecture - 04 Downloading and installing Python Programming, Data Structures and Algorithms in Python Prof. Madhavan Mukund Department of Computer Science and Engineering Indian Institute of Technology, Madras Week - 01 Lecture - 04 Downloading and

More information

2008 International ANSYS Conference

2008 International ANSYS Conference 2008 International ANSYS Conference Simulation Driven Product Development using ANSYS Technology Padmesh Mandloi Rahul Kumar Samir Kadam 2008 ANSYS, Inc. All rights reserved. 1 ANSYS, Inc. Proprietary

More information

IT 374 C# and Applications/ IT695 C# Data Structures

IT 374 C# and Applications/ IT695 C# Data Structures IT 374 C# and Applications/ IT695 C# Data Structures Module 2.1: Introduction to C# App Programming Xianrong (Shawn) Zheng Spring 2017 1 Outline Introduction Creating a Simple App String Interpolation

More information

Course Outline. Introduction to java

Course Outline. Introduction to java Course Outline 1. Introduction to OO programming 2. Language Basics Syntax and Semantics 3. Algorithms, stepwise refinements. 4. Quiz/Assignment ( 5. Repetitions (for loops) 6. Writing simple classes 7.

More information

Functions Structure and Parameters behind the scenes with diagrams!

Functions Structure and Parameters behind the scenes with diagrams! Functions Structure and Parameters behind the scenes with diagrams! Congratulations! You're now in week 2, diving deeper into programming and its essential components. In this case, we will talk about

More information

Workbench User's Guide

Workbench User's Guide Workbench User's Guide ANSYS, Inc. Southpointe 2600 ANSYS Drive Canonsburg, PA 15317 ansysinfo@ansys.com http://www.ansys.com (T) 724-746-3304 (F) 724-514-9494 Release 16.2 July 2015 ANSYS, Inc. is certified

More information

Typescript on LLVM Language Reference Manual

Typescript on LLVM Language Reference Manual Typescript on LLVM Language Reference Manual Ratheet Pandya UNI: rp2707 COMS 4115 H01 (CVN) 1. Introduction 2. Lexical Conventions 2.1 Tokens 2.2 Comments 2.3 Identifiers 2.4 Reserved Keywords 2.5 String

More information

Python Development with PyDev and Eclipse -

Python Development with PyDev and Eclipse - 1 of 11 4/4/2013 9:41 PM 130 Free tutorial, donate to support Python Development with PyDev and Eclipse - Tutorial Lars Vogel Version 1.8 Copyright 2009, 2010, 2011, 2012 Lars Vogel 01.07.2012 Revision

More information

SPARK-PL: Introduction

SPARK-PL: Introduction Alexey Solovyev Abstract All basic elements of SPARK-PL are introduced. Table of Contents 1. Introduction to SPARK-PL... 1 2. Alphabet of SPARK-PL... 3 3. Types and variables... 3 4. SPARK-PL basic commands...

More information

Using the Command-Line Interface

Using the Command-Line Interface CHAPTER 1 The command-line interface (CLI) is a line-oriented user interface that has a set of commands for configuring, managing, and monitoring the CSS. To help you use these commands, this chapter provides

More information

UNIT- 3 Introduction to C++

UNIT- 3 Introduction to C++ UNIT- 3 Introduction to C++ C++ Character Sets: Letters A-Z, a-z Digits 0-9 Special Symbols Space + - * / ^ \ ( ) [ ] =!= . $, ; : %! &? _ # = @ White Spaces Blank spaces, horizontal tab, carriage

More information

Swift. Introducing swift. Thomas Woodfin

Swift. Introducing swift. Thomas Woodfin Swift Introducing swift Thomas Woodfin Content Swift benefits Programming language Development Guidelines Swift benefits What is Swift Benefits What is Swift New programming language for ios and OS X Development

More information

Pace University. Fundamental Concepts of CS121 1

Pace University. Fundamental Concepts of CS121 1 Pace University Fundamental Concepts of CS121 1 Dr. Lixin Tao http://csis.pace.edu/~lixin Computer Science Department Pace University October 12, 2005 This document complements my tutorial Introduction

More information

DOWNLOAD PDF MICROSOFT EXCEL ALL FORMULAS LIST WITH EXAMPLES

DOWNLOAD PDF MICROSOFT EXCEL ALL FORMULAS LIST WITH EXAMPLES Chapter 1 : Examples of commonly used formulas - Office Support A collection of useful Excel formulas for sums and counts, dates and times, text manipularion, conditional formatting, percentages, Excel

More information

About Codefrux While the current trends around the world are based on the internet, mobile and its applications, we try to make the most out of it. As for us, we are a well established IT professionals

More information

8. Control statements

8. Control statements 8. Control statements A simple C++ statement is each of the individual instructions of a program, like the variable declarations and expressions seen in previous sections. They always end with a semicolon

More information

Java Bytecode (binary file)

Java Bytecode (binary file) Java is Compiled Unlike Python, which is an interpreted langauge, Java code is compiled. In Java, a compiler reads in a Java source file (the code that we write), and it translates that code into bytecode.

More information

Python for ArcGIS. Lab 1.

Python for ArcGIS. Lab 1. Python for ArcGIS. Lab 1. Python is relatively new language of programming, which first implementation arrived around early nineties of the last century. It is best described as a high level and general

More information

S206E Lecture 19, 5/24/2016, Python an overview

S206E Lecture 19, 5/24/2016, Python an overview S206E057 Spring 2016 Copyright 2016, Chiu-Shui Chan. All Rights Reserved. Global and local variables: differences between the two Global variable is usually declared at the start of the program, their

More information

Agenda. 9:00 Welcome. 1:00 - Computing Utilities. 9:15 - Mechanical Demonstration. 1:30 - CFD Update. 3:00 Break 3:15 ANSYS Customization Toolkit

Agenda. 9:00 Welcome. 1:00 - Computing Utilities. 9:15 - Mechanical Demonstration. 1:30 - CFD Update. 3:00 Break 3:15 ANSYS Customization Toolkit Agenda 9:00 Welcome 1:00 - Computing Utilities Introductions HPC What is new at CAEA GPU 9:15 - Mechanical Demonstration CAD connection utilities (within the CAD API) Mechanical setup Rigid Bodies, Joints,

More information

Episode 1 Using the Interpreter

Episode 1 Using the Interpreter Episode 1 Using the Interpreter Anaconda We recommend, but do not require, the Anaconda distribution from Continuum Analytics (www.continuum.io). An overview is available at https://docs.continuum.io/anaconda.

More information

CMSC 201 Fall 2016 Lab 09 Advanced Debugging

CMSC 201 Fall 2016 Lab 09 Advanced Debugging CMSC 201 Fall 2016 Lab 09 Advanced Debugging Assignment: Lab 09 Advanced Debugging Due Date: During discussion Value: 10 points Part 1: Introduction to Errors Throughout this semester, we have been working

More information

Pump Modeler Template Documentation

Pump Modeler Template Documentation Pump Modeler Template Documentation 2015 SAS IP, Inc. All rights reserved. Unauthorized use, distribution or duplication is prohibited CONTENTS USER INTERFACE AND WORKFLOW... 4 STEP 1: IMPORT GEOMETRY...

More information

ANSYS Customization. Mechanical and Mechanical APDL. Eric Stamper. Presented by CAE Associates

ANSYS Customization. Mechanical and Mechanical APDL. Eric Stamper. Presented by CAE Associates ANSYS Customization Mechanical and Mechanical APDL Presented by Eric Stamper 2011 CAE Associates Introduction CAE Associates Inc. Engineering consulting firm since 1981. ANSYS consulting, custom software

More information

c) Comments do not cause any machine language object code to be generated. d) Lengthy comments can cause poor execution-time performance.

c) Comments do not cause any machine language object code to be generated. d) Lengthy comments can cause poor execution-time performance. 2.1 Introduction (No questions.) 2.2 A Simple Program: Printing a Line of Text 2.1 Which of the following must every C program have? (a) main (b) #include (c) /* (d) 2.2 Every statement in C

More information

STATS 507 Data Analysis in Python. Lecture 2: Functions, Conditionals, Recursion and Iteration

STATS 507 Data Analysis in Python. Lecture 2: Functions, Conditionals, Recursion and Iteration STATS 507 Data Analysis in Python Lecture 2: Functions, Conditionals, Recursion and Iteration Functions in Python We ve already seen examples of functions: e.g., type()and print() Function calls take the

More information

Conditionals and Recursion. Python Part 4

Conditionals and Recursion. Python Part 4 Conditionals and Recursion Python Part 4 Modulus Operator Yields the remainder when first operand is divided by the second. >>>remainder=7%3 >>>print (remainder) 1 Boolean expressions An expression that

More information

Uniform General Algorithmic (UNIGA) Financial Trading Language. Proposal

Uniform General Algorithmic (UNIGA) Financial Trading Language. Proposal Uniform General Algorithmic (UNIGA) Financial Trading Language Proposal Leon Wu (llw2107@columbia.edu) Jiahua Ni (jn2173@columbia.edu) Jian Pan (jp2472@columbia.edu) Yang Sha (ys2280@columbia.edu) Yu Song

More information

Laboratory 0 Week 0 Advanced Structured Programming An Introduction to Visual Studio and C++

Laboratory 0 Week 0 Advanced Structured Programming An Introduction to Visual Studio and C++ Laboratory 0 Week 0 Advanced Structured Programming An Introduction to Visual Studio and C++ 0.1 Introduction This is a session to familiarize working with the Visual Studio development environment. It

More information

Overview. - General Data Types - Categories of Words. - Define Before Use. - The Three S s. - End of Statement - My First Program

Overview. - General Data Types - Categories of Words. - Define Before Use. - The Three S s. - End of Statement - My First Program Overview - General Data Types - Categories of Words - The Three S s - Define Before Use - End of Statement - My First Program a description of data, defining a set of valid values and operations List of

More information

Some material adapted from Upenn cmpe391 slides and other sources

Some material adapted from Upenn cmpe391 slides and other sources Some material adapted from Upenn cmpe391 slides and other sources History Installing & Running Python Names & Assignment Sequences types: Lists, Tuples, and Strings Mutability Understanding Reference Semantics

More information

R: A Gentle Introduction. Vega Bharadwaj George Mason University Data Services

R: A Gentle Introduction. Vega Bharadwaj George Mason University Data Services R: A Gentle Introduction Vega Bharadwaj George Mason University Data Services Part I: Why R? What do YOU know about R and why do you want to learn it? Reasons to use R Free and open-source User-created

More information

Welcome Application. Introduction to C++ Programming (Solutions) 2004 by Deitel & Associates, Inc. All Rights Reserved.

Welcome Application. Introduction to C++ Programming (Solutions) 2004 by Deitel & Associates, Inc. All Rights Reserved. T U T O R I A L 2 Welcome Application Introduction to C++ Programming (Solutions) 1 2 Introduction to C++ Programming (Solutions) Tutorial 2 These solutions will not be available to students. Instructor

More information

Session 3: JavaScript - Structured Programming

Session 3: JavaScript - Structured Programming INFM 603: Information Technology and Organizational Context Session 3: JavaScript - Structured Programming Jimmy Lin The ischool University of Maryland Thursday, September 25, 2014 Source: Wikipedia Types

More information

My First Cocoa Program

My First Cocoa Program My First Cocoa Program 1. Tutorial Overview In this tutorial, you re going to create a very simple Cocoa application for the Mac. Unlike a line-command program, a Cocoa program uses a graphical window

More information

INFORMATICS LABORATORY WORK #2

INFORMATICS LABORATORY WORK #2 KHARKIV NATIONAL UNIVERSITY OF RADIO ELECTRONICS INFORMATICS LABORATORY WORK #2 SIMPLE C# PROGRAMS Associate Professor A.S. Eremenko, Associate Professor A.V. Persikov 2 Simple C# programs Objective: writing

More information

ECE 202 LAB 3 ADVANCED MATLAB

ECE 202 LAB 3 ADVANCED MATLAB Version 1.2 1 of 13 BEFORE YOU BEGIN PREREQUISITE LABS ECE 201 Labs EXPECTED KNOWLEDGE ECE 202 LAB 3 ADVANCED MATLAB Understanding of the Laplace transform and transfer functions EQUIPMENT Intel PC with

More information

Numerical Methods. Centre for Mathematical Sciences Lund University. Spring 2015

Numerical Methods. Centre for Mathematical Sciences Lund University. Spring 2015 Numerical Methods Claus Führer Alexandros Sopasakis Centre for Mathematical Sciences Lund University Spring 2015 Preface These notes serve as a skeleton for the course. They document together with the

More information

Chapter 2 Basic Elements of C++

Chapter 2 Basic Elements of C++ C++ Programming: From Problem Analysis to Program Design, Fifth Edition 2-1 Chapter 2 Basic Elements of C++ At a Glance Instructor s Manual Table of Contents Overview Objectives s Quick Quizzes Class Discussion

More information

Table of Contents EVALUATION COPY

Table of Contents EVALUATION COPY Table of Contents Introduction... 1-2 A Brief History of Python... 1-3 Python Versions... 1-4 Installing Python... 1-5 Environment Variables... 1-6 Executing Python from the Command Line... 1-7 IDLE...

More information

B.V. Patel Institute of Business Management, Computer & Information Technology, Uka Tarsadia University

B.V. Patel Institute of Business Management, Computer & Information Technology, Uka Tarsadia University Unit 1 Programming Language and Overview of C 1. State whether the following statements are true or false. a. Every line in a C program should end with a semicolon. b. In C language lowercase letters are

More information

Civil Engineering Computation

Civil Engineering Computation Civil Engineering Computation First Steps in VBA Homework Evaluation 2 1 Homework Evaluation 3 Based on this rubric, you may resubmit Homework 1 and Homework 2 (along with today s homework) by next Monday

More information

Introduction to Python - Part I CNV Lab

Introduction to Python - Part I CNV Lab Introduction to Python - Part I CNV Lab Paolo Besana 22-26 January 2007 This quick overview of Python is a reduced and altered version of the online tutorial written by Guido Van Rossum (the creator of

More information

3. Except for strings, double quotes, identifiers, and keywords, C++ ignores all white space.

3. Except for strings, double quotes, identifiers, and keywords, C++ ignores all white space. Chapter 2: Problem Solving Using C++ TRUE/FALSE 1. Modular programs are easier to develop, correct, and modify than programs constructed in some other manner. ANS: T PTS: 1 REF: 45 2. One important requirement

More information

PHPoC. PHPoC vs PHP. Version 1.1. Sollae Systems Co., Ttd. PHPoC Forum: Homepage:

PHPoC. PHPoC vs PHP. Version 1.1. Sollae Systems Co., Ttd. PHPoC Forum:  Homepage: PHPoC PHPoC vs PHP Version 1.1 Sollae Systems Co., Ttd. PHPoC Forum: http://www.phpoc.com Homepage: http://www.eztcp.com Contents 1 Overview...- 3 - Overview...- 3-2 Features of PHPoC (Differences from

More information

Intro to Computer Programming (ICP) Rab Nawaz Jadoon

Intro to Computer Programming (ICP) Rab Nawaz Jadoon Intro to Computer Programming (ICP) Rab Nawaz Jadoon DCS COMSATS Institute of Information Technology Assistant Professor COMSATS IIT, Abbottabad Pakistan Introduction to Computer Programming (ICP) What

More information

Release notes for version 3.1

Release notes for version 3.1 Release notes for version 3.1 - Now includes support for script lines and character names. o When creating an Excel file project, it is possible to specify columns used for script lines and for character

More information

Working with JavaScript

Working with JavaScript Working with JavaScript Creating a Programmable Web Page for North Pole Novelties 1 Objectives Introducing JavaScript Inserting JavaScript into a Web Page File Writing Output to the Web Page 2 Objectives

More information

Computer Programming : C++

Computer Programming : C++ The Islamic University of Gaza Engineering Faculty Department of Computer Engineering Fall 2017 ECOM 2003 Muath i.alnabris Computer Programming : C++ Experiment #1 Basics Contents Structure of a program

More information

ucalc Patterns Examine the following example which can be pasted into the interpreter (paste the entire block at the same time):

ucalc Patterns Examine the following example which can be pasted into the interpreter (paste the entire block at the same time): [This document is far from complete but discusses some pattern essentials. Check back for more in the future; ask questions for clarity] ucalc Patterns ucalc patterns represent a key element of all current

More information

Full file at C How to Program, 6/e Multiple Choice Test Bank

Full file at   C How to Program, 6/e Multiple Choice Test Bank 2.1 Introduction 2.2 A Simple Program: Printing a Line of Text 2.1 Lines beginning with let the computer know that the rest of the line is a comment. (a) /* (b) ** (c) REM (d)

More information

Python in 10 (50) minutes

Python in 10 (50) minutes Python in 10 (50) minutes https://www.stavros.io/tutorials/python/ Python for Microcontrollers Getting started with MicroPython Donald Norris, McGrawHill (2017) Python is strongly typed (i.e. types are

More information

TENDER FOR PURCHASE OF LICENSES OF FINITE ELEMENT ANALYSIS PROGRAM SPECIFICATIONS

TENDER FOR PURCHASE OF LICENSES OF FINITE ELEMENT ANALYSIS PROGRAM SPECIFICATIONS TENDER FOR PURCHASE OF LICENSES OF FINITE ELEMENT ANALYSIS PROGRAM SPECIFICATIONS 1. OVERVIEW 1.1. These specifications identify the minimum requirements for the Licenses of two Finite Element Analysis

More information

ARTIFICIAL INTELLIGENCE AND PYTHON

ARTIFICIAL INTELLIGENCE AND PYTHON ARTIFICIAL INTELLIGENCE AND PYTHON DAY 1 STANLEY LIANG, LASSONDE SCHOOL OF ENGINEERING, YORK UNIVERSITY WHAT IS PYTHON An interpreted high-level programming language for general-purpose programming. Python

More information

Chapter 1 Introduction to Computers and C++ Programming

Chapter 1 Introduction to Computers and C++ Programming Chapter 1 Introduction to Computers and C++ Programming 1 Outline 1.1 Introduction 1.2 What is a Computer? 1.3 Computer Organization 1.7 History of C and C++ 1.14 Basics of a Typical C++ Environment 1.20

More information

Lecture 4. Defining Functions

Lecture 4. Defining Functions Lecture 4 Defining Functions Academic Integrity Quiz Remember: quiz about the course AI policy Have posted grades for completed quizes Right now, missing ~130 enrolled students If did not receive at least

More information

Introduction to ANSYS

Introduction to ANSYS Lecture 1 Introduction to ANSYS ICEM CFD 14. 0 Release Introduction to ANSYS ICEM CFD 1 2011 ANSYS, Inc. March 22, 2015 Purpose/Goals Ansys ICEM CFD is a general purpose grid generating program Grids for

More information

Universal Function. How to build an Universal Function with beas Usability Extension. Beas Tutorial. Boyum Solutions IT A/S

Universal Function. How to build an Universal Function with beas Usability Extension. Beas Tutorial. Boyum Solutions IT A/S Universal Function How to build an Universal Function with beas Usability Extension Boyum Solutions IT A/S Beas Tutorial TABLE OF CONTENTS 1. INTRODUCTION... 3 2. PROCESS... 3 2.1. Header... 5 2.2. Detailed...

More information

Programming Fundamentals

Programming Fundamentals Programming Fundamentals Computers are really very dumb machines -- they only do what they are told to do. Most computers perform their operations on a very primitive level. The basic operations of a computer

More information

Lecture 6: CAD Import Release. Introduction to ANSYS Fluent Meshing

Lecture 6: CAD Import Release. Introduction to ANSYS Fluent Meshing Lecture 6: CAD Import 14.5 Release Introduction to ANSYS Fluent Meshing 1 Fluent Meshing 14.5 Assembly meshing Workflow This Lecture Tessellated or Conformal CAD import Cap Inlet/Outlets, Create Domains/BOI

More information

LABORATORY OF DATA SCIENCE. Python & Spyder- recap. Data Science & Business Informatics Degree

LABORATORY OF DATA SCIENCE. Python & Spyder- recap. Data Science & Business Informatics Degree LABORATORY OF DATA SCIENCE Python & Spyder- recap Data Science & Business Informatics Degree Python 2 Python is a High-level Interpreted (Interpreters for many OS) Dynamically Typed Verification of the

More information

Statements 2. a operator= b a = a operator b

Statements 2. a operator= b a = a operator b Statements 2 Outline Note: i=i+1 is a valid statement. Don t confuse it with an equation i==i+1 which is always false for normal numbers. The statement i=i+1 is a very common idiom: it just increments

More information

Solving FSI Applications Using ANSYS Mechanical and ANSYS Fluent

Solving FSI Applications Using ANSYS Mechanical and ANSYS Fluent Workshop Transient 1-way FSI Load Mapping using ACT Extension 15. 0 Release Solving FSI Applications Using ANSYS Mechanical and ANSYS Fluent 1 2014 ANSYS, Inc. Workshop Description: This example considers

More information

Introduction to Programming with Python 3, Ami Gates. Chapter 1: Creating a Programming Environment

Introduction to Programming with Python 3, Ami Gates. Chapter 1: Creating a Programming Environment Introduction to Programming with Python 3, Ami Gates Chapter 1: Creating a Programming Environment 1.1: Python, IDEs, Libraries, Packages, and Platforms A first step to learning and using any new programming

More information

age = 23 age = age + 1 data types Integers Floating-point numbers Strings Booleans loosely typed age = In my 20s

age = 23 age = age + 1 data types Integers Floating-point numbers Strings Booleans loosely typed age = In my 20s Intro to Python Python Getting increasingly more common Designed to have intuitive and lightweight syntax In this class, we will be using Python 3.x Python 2.x is still very popular, and the differences

More information

Binghamton University. EngiNet. State University of New York

Binghamton University. EngiNet. State University of New York Binghamton University EngiNet State University of New York 1 Thomas J. Watson School of Engineering and Applied Science EngiNet WARNING All rights reserved. No Part of this video lecture series may be

More information

Embest IDE Pro for ARM 2005

Embest IDE Pro for ARM 2005 Embest IDE Pro for ARM 2005 1.1 About Embest IDE Pro for ARM2005 Embest IDE Pro for ARM2005 is a new release of Embest IDE for ARM based on 2004 version. It is an Integrated Development Environment for

More information

Introduction to Python. Fang (Cherry) Liu Ph.D. Scien5fic Compu5ng Consultant PACE GATECH

Introduction to Python. Fang (Cherry) Liu Ph.D. Scien5fic Compu5ng Consultant PACE GATECH Introduction to Python Ph.D. Scien5fic Compu5ng Consultant PACE GATECH Things Covered What is Python? How to access Python environment? Fundamental elements in Python Variables (assignment, comparison,

More information

CS 349 / SE 382 Scripting. Professor Michael Terry March 18, 2009

CS 349 / SE 382 Scripting. Professor Michael Terry March 18, 2009 CS 349 / SE 382 Scripting Professor Michael Terry March 18, 2009 Today s Agenda Scripting Jython CS 349 / SE 382 / 2 Announcements Assignment 4 due next Friday! CS 349 / SE 382 / 3 Questions? CS 349 /

More information