Math Toolbutton

This script starts several other scripts for mathematical calculations that are useful for modelling in Opera. You get the most out of it if you install it as a user toolbutton.

Dialog Box

User toolbutton icon:

maths.comi
/=============================================================================================================/
/ Thomatronik GmbH	
/ Brückenstr. 1	  Tel.: +49 (0)8031 2175-0     www.thomatronik.de
/ D-83022 Rosenheim	  Fax.: +49 (0)8031 2175-30    info@thomatronik.de
/
/ Author:	  Thomas Müller
/ Date:           10.11.2010
/ Opera-Version:  13.042
/
/ Comiskript for: Opera2d Modeller Postporcessor
/
/ Changes
/ --------
/ 10.11.2010: First Release
/
/=============================================================================================================/
 
/-------------------------------------------------------------------------------------------------------------/
/ Description:
/
/ This is a toolbutton to start several other script that do usefull mathematical calculations for you:
/ - Skin depth
/ - Oscillating frequency and damping
/ - Peclet number
/ - .....
/-------------------------------------------------------------------------------------------------------------/
/Initialize Pushbuttons
$const #pb_skindepth 0
$const #pb_oscillation 0
$const #pb_peclet 0
$cons #state 0
 
$while #state<1 
  $if #state==0 
    $DIALOG ACTION=Start TITLE='Thomatroniks Math Toolbox'
      $GROUPBOX ACTION=Start TITLE='Eddy current skin depth' ORIENTATION=Horizontal Strips=1
          $Displayline '<nobr>The appropriate mesh size for modelling skin depth is at least 3 elements per depth.</nobr> For small depth use a surface impideance boundary condition.'
          $ask Name=#pb_skindepth PROMPT='Skindepth' HISTORY='Pushbutton' 
      $GROUPBOX Action=Stop
      $GROUPBOX ACTION=Start TITLE='Electromagnetic oscillation' ORIENTATION=Horizontal Strips=1
        $Displayline 'For oscillating transient models the timestep should be set appropriate to the oscillating frequency.'
        $ask Name=#pb_oscillation PROMPT='Oscillation' HISTORY='Pushbutton' 
      $GROUPBOX Action=Stop
      $GROUPBOX ACTION=Start TITLE='Peclet number' ORIENTATION=Horizontal Strips=1
          $Displayline 'Motion induced eddy current models with <b>ELEKRA VL</B> might have convergence problems if the cell Peclet number is much greater than one.'  
          $ask Name=#pb_peclet PROMPT='Peclet' HISTORY='Pushbutton' 
      $GROUPBOX Action=Stop
   $DIALOG ACTION=Stop
  $end if
    //Pushbutton #skindepth has been pressed
  $if #pb_skindepth==1 
    $comi 'skindepth/skindepth.comi'
    //Go back to the main dialog  
    $cons #state 0
    //Reset the pushbutton
    $cons #pb_skindepth 0
  $end if 
   //Pushbutton #oscillation has been pressed
  $if #pb_oscillation==1 
    $comi 'oscillation/oscillator.comi'
    //Go back to the main dialog  
    $cons #state 0
    //Reset the pushbutton
    $cons #pb_oscillation 0
  $end if  
   //Pushbutton #peclet has been pressed
  $if #pb_peclet==1 
    $comi 'Peclet/peclet.comi'
    //Go back to the main dialog  
    $cons #state 0
    //Reset the pushbutton
    $cons #pb_peclet 0
  $end if  
$end while

To get this script working, you have to download and save the subcripts in the right folder:

scripts/dialogs/math_button.txt · Last modified: 2013/06/27 11:49 by henschel
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0