User Tools

Site Tools


wiki:sns:snspro:check_convergence_of_a_scenario

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
wiki:sns:snspro:check_convergence_of_a_scenario [2017/07/14 10:08] – [Automated convergence checking script] michaelwiki:sns:snspro:check_convergence_of_a_scenario [2017/07/17 10:23] (current) claire
Line 1: Line 1:
 +~~CLOSETOC~~ 
 +{{TOC:wide}} 
 +\\
 ====== Checking the Convergence of a Solution ====== ====== Checking the Convergence of a Solution ======
 One important aspect of numerical simulations is to check the validity of the solution.  Generally, there is not an analytical solution generally available, so the simulation must be checked against itself at a higher resolution. The process of checking a solution at increasing resolution is known as convergence checking, as the solution is expected to converge on a particular value. The convergence checking process begins by picking a stress, strain, or deflection at a point to study. One important aspect of numerical simulations is to check the validity of the solution.  Generally, there is not an analytical solution generally available, so the simulation must be checked against itself at a higher resolution. The process of checking a solution at increasing resolution is known as convergence checking, as the solution is expected to converge on a particular value. The convergence checking process begins by picking a stress, strain, or deflection at a point to study.
Line 6: Line 8:
  
 =====Automated convergence checking script===== =====Automated convergence checking script=====
-The convergence checking process can be automated in SnSScript.  The attached script will allow you to run a basic convergence check. Check out the script here: [[:convergence_study|Convergence Checking Example]]+The convergence checking process can be automated in SnSScript.  The attached script will allow you to run a basic convergence check. Check out the script here: [[wiki:sns:snsscript:convergence_study|Convergence Checking Example]]
  
  
   * Open your model and run **SnS** on the solid.  Choose the material and set the restraints and loads.  Now, exit SnS by clicking **Done**.   * Open your model and run **SnS** on the solid.  Choose the material and set the restraints and loads.  Now, exit SnS by clicking **Done**.
  
-  * Run **convergence.rvb** by [[run SnSScript#running_a_script|following these steps.]]  It will ask you to select the solid you would like to check, and it will use the material, restraints, and loads as applied in SnS.  +  * Run **convergence.rvb** by [[wiki:sns:snsscript:getting_started#running a script|following these steps.]] It will ask you to select the solid you would like to check, and it will use the material, restraints, and loads as applied in SnS.  
  
   * Next, the script will ask for a point on or in the solid to check.  The script will check the von Mises stress at this location at three resolutions to determine whether or not the solution is converging.   * Next, the script will ask for a point on or in the solid to check.  The script will check the von Mises stress at this location at three resolutions to determine whether or not the solution is converging.
Line 17: Line 19:
   * Finally, the script will run (this may take some time) and report whether the solution is converging.  If it determines it is, the script will report the percent difference between the second and third resolutions as its tolerance.   * Finally, the script will run (this may take some time) and report whether the solution is converging.  If it determines it is, the script will report the percent difference between the second and third resolutions as its tolerance.
  
-All of the settings (such as chosen resolutions and the value to check) can be changed in **convergence.rvb** by [[run snsscript#editing_a_script|editing the script]].+All of the settings (such as chosen resolutions and the value to check) can be changed in **convergence.rvb** by [[wiki:sns:snsscript:getting_started#editing a script|editing script.]] 
  
-If you are interested in the process of convergence checking and why this script was created in this way, check out {{convergencechecking.pdf|this reference on practical convergence checking}}.+If you are interested in the process of convergence checking and why this script was created in this way, check out {{:convergencechecking.pdf|this reference on practical convergence checking}}.
  
 =====Create a convergence plot with SnSScript===== =====Create a convergence plot with SnSScript=====
-It is also possible to generate a plot of convergence data using SnSScript.  Download the script here: {{convergence_plot.rvb|Convergence Plotting Script}}+It is also possible to generate a plot of convergence data using SnSScript.  Download the script here: {{:convergence_plot.rvb|Convergence Plotting Script}}
  
  
   * Open your model and run **SnS** on the solid.  Choose the material and set the restraints and loads.  Now, exit SnS by clicking **Done**.   * Open your model and run **SnS** on the solid.  Choose the material and set the restraints and loads.  Now, exit SnS by clicking **Done**.
  
-  * Run **PlotConvergence.rvb** by [[run SnSScript#running_a_script|following these steps.]]  The script will ask for a file location to save the data at.  It will also ask you to select the solid you would like to check, and it will use the material, restraints, and loads as applied in SnS.  +  * Run **PlotConvergence.rvb** by [[wiki:sns:snsscript:getting_started#running a script|following these steps.]] The script will ask for a file location to save the data at.  It will also ask you to select the solid you would like to check, and it will use the material, restraints, and loads as applied in SnS.  
  
   * Next, the script will ask for a point on or in the solid to generate the convergence plot.  The script will query the von Mises stress and total displacement at this location.   * Next, the script will ask for a point on or in the solid to generate the convergence plot.  The script will query the von Mises stress and total displacement at this location.
Line 36: Line 38:
 The data produced by the script is best plotted with the values of resolution on a logarithmic scale. The data produced by the script is best plotted with the values of resolution on a logarithmic scale.
 =====References===== =====References=====
-{{convergencechecking.pdf|Convergence checking reference}} +{{:convergencechecking.pdf|Convergence checking reference}}
- +
-[[http://www.intact-solutions.com/snsscript_documents/index.htm|Scan&Solve scripting documentation]]+
  
-[[run SnSScript|How to run SnSScript]]+[[wiki:sns:snsscript:scan_solve_script|Scan&Solve scripting documentation]]
  
 [[https://support.office.com/en-za/article/Import-or-export-text-txt-or-csv-files-5250ac4c-663c-47ce-937b-339e391393ba|Import CSV Files into Excel]] [[https://support.office.com/en-za/article/Import-or-export-text-txt-or-csv-files-5250ac4c-663c-47ce-937b-339e391393ba|Import CSV Files into Excel]]
wiki/sns/snspro/check_convergence_of_a_scenario.1500048520.txt.gz · Last modified: 2017/07/14 10:08 by michael