GSvit documentation

open source FDTD solver with GPU support

User Tools

Site Tools


start:first_simulation

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
start:first_simulation [2018/09/04 16:03]
pgrolich
start:first_simulation [2019/01/14 07:58] (current)
pgrolich
Line 27: Line 27:
 {{:​start:​screenshots:​first-simulation-init.png?​400|}} {{:​start:​screenshots:​first-simulation-init.png?​400|}}
  
-It is reasonable to save your parameter file at this stage using <i>File->​Save</i> command. We can do it also later, just before running computation,​ however doing it right now will set the current directory and other input/​output files set later can be referred to it (instead of using absolute path). Moreover, by saving parameter file we also set default directory for temporary files (e.g. generated sources), which is also important.+It is reasonable to save your parameter file at this stage using //File->​Save/​command. We can do it also later, just before running computation,​ however doing it right now will set the current directory and other input/​output files set later can be referred to it (instead of using absolute path). Moreover, by saving parameter file we also set default directory for temporary files (e.g. generated sources), which is also important.
  
 First we will add **point source**. This can be done using menu entry //Edit parameters->​Add point source//. First we will add **point source**. This can be done using menu entry //Edit parameters->​Add point source//.
Line 41: Line 41:
 file much faster and see the position changes immediately.//​ file much faster and see the position changes immediately.//​
  
-Next we will add <b>point and image outputs</b>. This is done by menu entry //Edit parameters->​Add point output// and //Edit parameters->​Add image output// that again open dialogues for specifying how often (parameter "​skip"​) and which component should be output. Point output is collected from a single point within computational volume and is stored into a text file. Image output comes to general output file that can be opened by [[http://​gwyddion.net|Gwyddion]] open source software. A cross section in certain normal direction is output, selected as shown below. We will add a cross section in every direction, so we will call the dialog three times.+Next we will add **point and image outputs**. This is done by menu entry //Edit parameters->​Add point output// and //Edit parameters->​Add image output// that again open dialogues for specifying how often (parameter "​skip"​) and which component should be output. Point output is collected from a single point within computational volume and is stored into a text file. Image output comes to general output file that can be opened by [[http://​gwyddion.net|Gwyddion]] open source software. A cross section in certain normal direction is output, selected as shown below. We will add a cross section in every direction, so we will call the dialog three times.
  
 {{:​start:​screenshots:​first-simulation-image-output.png?​400|}} {{:​start:​screenshots:​first-simulation-image-output.png?​400|}}
Line 74: Line 74:
 {{:​start:​screenshots:​first-simulation-longwrong.png?​400|}} {{:​start:​screenshots:​first-simulation-longwrong.png?​400|}}
  
-<p>This behavior is caused by unset <b>boundary conditions</​b> ​that behave like mirrors here.  +This behavior is caused by unset **boundary conditions** that behave like mirrors here. In order to let the wave go out of the computational space we need to apply an absorbing boundary condition, so we click on any entry in "​Boundary conditions"​ set to change the boundary conditions on all the faces to a simple absorbing condition (Liao). 
-In order to let the wave go out of the computational + 
-space we need to apply an absorbing boundary condition, so we click on any entry in "​Boundary conditions"​ set to change the boundary conditions +{{:start:​first-simulation-boundary-conditions.png?400|}}
-on all the faces to a simple absorbing condition (Liao).</p> +
-<img src="​http://​gsvit.net/​images_v18/​ex1_bcs.png">+
  
 After that (and saving the file, running computation and redisplaying data again) we can see that the output is already propagating freely outside of the computation volume. After that (and saving the file, running computation and redisplaying data again) we can see that the output is already propagating freely outside of the computation volume.
start/first_simulation.1536069800.txt.gz · Last modified: 2018/09/04 16:03 by pgrolich