{% extends "base_framework.html" %} {% load staticfiles %}

{% block main_body_content %}

This form sets the basic simulation parameters. Read the instructions below for more information.

{% if simulation %}

Simulation Parameters

Simulation title:
{{ simulation.sim_title }}
Simulation description:
{{ simulation.sim_descrip }}
Time duration:
{{ simulation.sim_time_limit }}
Integration time step:
{{ simulation.sim_time_step }}
Time step of data storage:
{{ simulation.sim_time_data }}
Output data file:
{{ simulation.sim_output_file }}
Slice the output file?:
{{ simulation.sim_output_slice }}
Number of slices:
{{ simulation.sim_div_number }}
Directory with circuit files:
{{ simulation.sim_working_directory }}

Click here to change the parameters.

{% endif %} {% if form %} {% if form.errors %}

There are errors in the form!

{% endif %} {% for sim_item in form %}
{{ sim_item }}
{% if sim_item.errors %}
{% for sim_errors in sim_item.errors %} {{ sim_errors }}
{% endfor %}
{% endif %} {% endfor %}


{% endif %} {% csrf_token %}

Instructions

  1. Title does not have to be unique. But limited to 100 characters
  2. Description is not necessary but is recommended to document the simulation.
  3. Time limit is in seconds.
  4. Integration time step is extremely important as it affects the numerical stability of the simulation. Choose a value as small as possible. Very small values however can slow down the simulation. For typical power electronic circuits with converters switching at 5 kHz, 1 microsecond will do. For high frequency converters, reduce this to nanoseconds.
  5. Data storage time step is how often you want to store data to the output file. This affects the resolution of the plotted waveforms. The number has to be greater than or equal to the integration time step.
  6. Output data file is the name of the output file to which all waveform data will be written. Suggested types are .dat or .txt files.
  7. Whether to slice the output file is up to you. This is particularly useful when you also want to plot the waveforms independently using a plotting software such as Gnuplot. When output files are sliced, you can plot segments of waveforms without excessive burden if the simulation data is huge.
  8. If you do decide the slice the output file, the number of slices should be greater than 1.
  9. The directory with the circuit files will be the working directory of the simulation case. Always maintain simulation cases in separate directories as this avoids corruption of data and allows simulations to be executed independently. To enter this value, choose a file (a circuit file or just copy some file into the directory you choose) and right click on the file. Most operating systems, will give you a list of options on right-clicking a file and one of the options is "Properties". If you click "Properties", the path, location or directory will be listed. Copy this path to the field above. NOTE: Make sure the directory can be written to by the user. Do not choose a root or administrator directory for safety reasons as the simulator will read and write data to this directory.
  10. After saving the parameters, they will be listed for you. Check them and click on "Back to main page" to continue.
{% endblock %}