Visual debugging with SimpleGeo Chris Theis. Overview SimpleGeo’s visual debugger Running a few examples.

Slides:



Advertisements
Similar presentations
Introduction to Eclipse. Start Eclipse Click and then click Eclipse from the menu: Or open a shell and type eclipse after the prompt.
Advertisements

Chapter 3 – Web Design Tables & Page Layout
ENGT 122 – CAD I Chapter 6 – Editing With Grips. Get a Grip! What are Grips? Small squares displayed on an object at its definition points when selected.
 Microsoft Excel is an electronic spreadsheet.  As with a paper spreadsheet, you can use Excel to organize your data into rows and columns and to perform.
Computer and Communication Fundamental Basic web programming Lecture 8 Rina Zviel-Girshin.
Testing and Test Case Development A “primitive” method of testing, with NO test preparation, may include the following steps : – Initiate the system –
Excel Navigation. Instructions Use this PowerPoint presentation as you answer the Excel Navigation worksheet questions. Have Excel open also and use ALT.
C. Theis, CERNSimpleGeo example1 Chris Theis Building a geometry with SimpleGeo.
Tutorial 8: Developing an Excel Application
Advanced steps with SimpleGeo Chris Theis. Overview Different visualization modes Geometry sections Visualization of biasing Volume & mass calculation.
Smoothing Linework June 2012, Planetary Mappers Meeting.
Click your mouse to continue Menu Conventions A check mark option is a toggle or “on-off” switch (like a light switch) that is either checked (turned on)
SimpleGeo 2.0 new developments Chris Theis SC/RP.
Guide to Oracle10G1 Introduction To Forms Builder Chapter 5.
Sampling Attila Gyulassy Image Synthesis. Overview Problem Statement Random Number Generators Quasi-Random Number Generation Uniform sampling of Disks,
2003 by Jim X. Chen: Introduction to Modeling Jim X. Chen George Mason University.
A Guide to Oracle9i1 Introduction To Forms Builder Chapter 5.
The IDE (Integrated Development Environment) provides a DEBUGGER for locating and correcting errors in program logic (logic errors not syntax errors) The.
Customizing Outlook. Forms Window in which you enter and view information in Outlook Outlook Form Designer The environment in which you create and customize.
Chapter 2: The Visual Studio.NET Development Environment Visual Basic.NET Programming: From Problem Analysis to Program Design.
Using the Unity 98 Cordless Response System Directions : Courtesy of IHC public relations.
2. Introduction to the Visual Studio.NET IDE 2. Introduction to the Visual Studio.NET IDE Ch2 – Deitel’s Book.
Chapter 4 Code Editor Goals and Objectives Program more efficiently? How can you speed up your development process? Do you want to learn useful shortcuts.
Programming a GUI Hanan sedaghat pisheh. For calling GUI, we need a function with no inputs or outputs First We create a m.file m file has the same name.
SolidWorks Teacher Guide Lesson2
MICROSOFT WORD GETTING STARTED WITH WORD. CONTENTS 1.STARTING THE PROGRAMSTARTING THE PROGRAM 2.BASIC TEXT EDITINGBASIC TEXT EDITING 3.SAVING A DOCUMENTSAVING.
CCS APPS CODE COVERAGE. CCS APPS Code Coverage Definition: –The amount of code within a program that is exercised Uses: –Important for discovering code.
Color Correct and Remove Keystoning A minimalist approach to photographing your art By Paul Marley.
Introduction to MCMC and BUGS. Computational problems More parameters -> even more parameter combinations Exact computation and grid approximation become.
SimpleGeo render plugins Chris Theis. SimpleGeo architecture GUI Graphical user interface CSG – Engine B-Rep - Kernel Importer/ Exporter Command manager.
T U T O R I A L  2009 Pearson Education, Inc. All rights reserved. 1 2 Welcome Application Introducing the Visual Basic 2008 Express Edition IDE.
Draft manual IPS 2.0 Robotics education HM Automation Solution Education.
Petrel Workflow Tools 5 Day Introduction Course
Sampling Methods  Sampling refers to how observations are “selected” from a probability distribution when the simulation is run. 1.
1 Word 2010 Intro to Word – Part 2. 2 Steps for Creating a Document  Step 1: Open a Blank Document (New, or Open)  Step 2: Name the Document (Save As.
Move the mouse to the IE icon on the Quick Launch Bar and click to cut a small picture. This small picture is for locating the position of IE Quick Launch.
Active-HDL Interfaces Debugging C Code Course 10.
Enhancing a Video/Movie. I.Narrate the Timeline To narrate the timeline Add any video clips, pictures, titles, or credits that you want to display in.
Chris Theis. C. TheisFLUKA users meeting 02/082 Overview SimpleGeo 3.0 & the next release Plugins 2.0 & the next release 2.1.
Chapter 3 The Visual Basic Editor. Important Features of the VBE Alt-F11 will open the Visual Basic Editor. The Code window is to the right, Project Explorer.
1 ball, 2 ball, red ball, blue ball By Melissa Dalis Professor Susan Rodger Duke University June 2011.
From: CHAPTER 7– Materials and Rendering 3DS MAX AND ITS APPLICATIONS Materials and Rendering James Martin High School Computer Multimedia and Animation.
5-1 ANSYS, Inc. Proprietary © 2009 ANSYS, Inc. All rights reserved. May 28, 2009 Inventory # Chapter 5 Six Sigma.
Slide 1 Project 1 Task 2 T&N3311 PJ1 Information & Communications Technology HD in Telecommunications and Networking Task 2 Briefing The Design of a Computer.
Duy & Piotr. How to reconstruct a high quality image with the least amount of samples per pixel the least amount of resources And preserving the image.
TI-83 An Introduction to Graphing Mathematics Staff Development Lincoln Public Schools August 25, 2005 © Jerel L. Welker
NA-MIC National Alliance for Medical Image Computing Slicer3 Tutorial: Registration Library Case 15 AC-PC Alignment Dominik Meier, Ron.
CS348B Lecture 9Pat Hanrahan, Spring 2005 Overview Earlier lecture Statistical sampling and Monte Carlo integration Last lecture Signal processing view.
Hints on debugging
Ray Tracing Fall, Introduction Simple idea  Forward Mapping  Natural phenomenon infinite number of rays from light source to object to viewer.
Chapter 2 Using Selection Tools and Shortcut Keys
This tutorial will talk you through a very basic workbench queueing simulation. The queueing system modelled is of customers entering an infinite capacity.
Intelligent Robotics Today: Vision & Time & Space Complexity.
15 Copyright © 2004, Oracle. All rights reserved. Debugging Triggers.
G042 - Lecture 15 Excel Macros Mr C Johnston ICT Teacher
01/26/05© 2005 University of Wisconsin Last Time Raytracing and PBRT Structure Radiometric quantities.
IE 411/511: Visual Programming for Industrial Applications Lecture Notes #2 Introduction to the Visual Basic Express 2010 Integrated Development Environment.
Train Body The next series of slides will guide you through the construction of the train body. Start a new drawing and save it as Train Body.
Solid Modeling Dr. Scott Schaefer.
Desktop Publishing Lesson 6 — Publishing a Document.
Editing and Debugging Mumps with VistA and the Eclipse IDE Joel L. Ivey, Ph.D. Dept. of Veteran Affairs OI&T, Veterans Health IT Infrastructure & Security.
Introducing To 3D Studio Max George Atanasov Telerik Corporation
Chapter 2: The Visual Studio.NET Development Environment Visual Basic.NET Programming: From Problem Analysis to Program Design.
WS4.3-1 ANSYS, Inc. Proprietary © 2009 ANSYS, Inc. All rights reserved. July 2009 Inventory # Chapter 4 Volume Meshing – Workshop 3 Femur BF Cartesian.
VS Toolbox is a collection of scripts,
Important terms Black-box testing White-box testing Regression testing
Important terms Black-box testing White-box testing Regression testing
CSE 1020:Software Development
Presentation transcript:

Visual debugging with SimpleGeo Chris Theis

Overview SimpleGeo’s visual debugger Running a few examples

Geometry errors Two types of errors Overlapping regions FLUKA won’t crash but the results may be not what you had intended. Undefined regions program crash Geometry errorsDebugging methodsExamples Geometry errors

SimpleGeo’s approach Basic idea is similar to FLUKA: Test if particles at specified positions encounter an unambiguous and well-defined region description The “black magic”: How do you define those positions that should be tested? Geometry errorsDebugging methodsExamples Geometry errors ATTENTION: The debugger checks the geometry only!!! It does not include diagnostics for misaligned values in the input file!

Grid debugging 1.Definition of a region of interest (ROI) via XMin, XMax, YMin, YMax, ZMin, ZMax 2.Specification of how many steps should be taken in each direction The problem: Errors located in between the equidistant step sizes cannot be found by definition! Geometry errorsDebugging methodsExamples Geometry errorsDebugging methods

Other methods Monte Carlo sampling of the region Due to the randomness the probability to find very small errors exists. Drawback: Tendency to cluster at low sampling rates. Uniformity is reached only by a large number of samples. Quasi-Monte Carlo sampling of the region Faster convergence towards uniformity. Drawback: Very complex mathematics involved (but this can be compensated for by highly optimized sampling routines). Monte Carlo sampling (500 points) Quasi Monte Carlo sampling (500 points) Geometry errorsDebugging methodsExamples Geometry errorsGeometry errorsDebugging methods * Images courtesy of R. Dodier, Wikipedia

Algorithms available in SimpleGeo Grid sampling - Equidistant points in each direction X, Y, Z Stochastic sampling (Monte Carlo method) - Uniform distribution of points in a box Importance sampling - Exponential distribution of points in a sphere Quasi Monte Carlo (recommended) (low discrepancy, jittered stratified, latin hypercube) - Quasi-random distribution of points in a box Geometry errorsDebugging methodsExamples Geometry errorsGeometry errorsDebugging methods

A first example 1. Import ngen_e1.inp from the folder data/Debugging 2. Activate the automatic build on the toolbar 3. Reset the camera clicking on the toolbar 4. You will now see the surrounding blackhole 5. Turn off the visibility of the blackhole (Click on the checkbox next to the region named 001_Diff or click on the gray sphere and press the Space key) Geometry errorsDebugging methodsExamples

A first example 6. Select region 002_Diff in the CSG tree 7. We want to debug everything inside this region 8. Expand the region and select the primitive named 2, which is the source primitive of reference node R_2 and surrounds our region of interest (ROI) 9. Note the position & extension – they form our ROI Geometry errorsDebugging methodsExamples

Debug the geometry 10. Open the debugger via the menu “File” - “Debug geometry” 11. Enter the coordinates of our ROI or load them from the file ngen_e1.sdb 12. Click on the bug to start Start Geometry errorsDebugging methodsExamples

The result Debugging can be stopped anytime. All errors found so far will be displayed. After some time the following overlaps will be found: Click on one of the entries and the respective region will be automatically selected in the CSG tree Geometry errorsDebugging methodsExamples

The result Select “View” - “Overlay sketch” to render all regions inside our ROI Click on the “Visualize” button in the debugger dialog Overlapping points Marked by green spheres Geometry errorsDebugging methodsExamples

Taking a closer look Regions #12 and #13 are problematic refine the ROI for debugging 1. Select 012_Union in the CSG tree 2. Double click on the right mouse button to open the context menu, and select Node-info. 1. The values of Box min & Box max are the extensions of the bounding box. 2. Click on “Use values for debugging” to transfer the bounding box values to the debugger. Geometry errorsDebugging methodsExamples

Taking a closer look 5. Turn off the visibility of all regions except 012_Union and 013_Union 6. Select Low discrepancy or Latin Hypercube as the debugging algorithm and start the debugger. There is an error in the region description of region # 12, which lacks a cut plane. Geometry errorsDebugging methodsExamples

A second example 1. Close the debugger, create a new scene and import ngen_e2.inp from the folder data/Debugging 2. Activate the automatic build on the toolbar 3. Reset the camera clicking on the toolbar 4. You will now see the surrounding blackhole 5. Turn off the visibility of the blackhole (Click on the checkbox next to the region named 001_Diff or click on the gray sphere and press the Space key) Geometry errorsDebugging methodsExamples

A second example 6. Load the debug parameters from ngen_e2.sdb 7. Start the debugger A huge amount of over- laps is found in 007_Int and 008_Int. Hint: Select 007_Int in the CSG tree and then select 008_Int. You will see that both have the same red contours. This means that they are identical! Geometry errorsDebugging methodsExamples

A third example 1. Close the debugger, create a new scene and import ngen_e4.inp from the folder data/Debugging 2. Activate the automatic build on the toolbar 3. Reset the camera clicking on the toolbar 4. You will now see the surrounding blackhole 5. Turn off the visibility of the blackhole (Click on the checkbox next to the region named 001_Diff or click on the gray sphere and press the Space key) Geometry errorsDebugging methodsExamples

A third example 6. Load the debug parameters from ngen_e3.sdb 7. Start the debugger A huge amount of undefined points was found and marked by red spheres. A region is missing Geometry errorsDebugging methodsExamples

Final remarks Which algorithm is the best? - The best is a total, uniform coverage of the region. possible only with infinitely many steps Geometry errorsDebugging methodsExamples Combine and try various methods. 1.) Low discrepancy/Latin Hypercube/Jittered stratified (recommended in the first place) 2.) Stochastic sampling 3.) Grid sampling * Starting with SG 4.2 all algorithms are also provided in parallelized versions (MP). These will automatically utilize all available cores of a multi-core system.