From c42ab63f9072d047a590f710ef743b03f98c5d37 Mon Sep 17 00:00:00 2001 From: Thorsten Liebig Date: Thu, 2 Aug 2012 13:29:22 +0200 Subject: [PATCH] matlab: improved help on RunOpenEMS function --- matlab/RunOpenEMS.m | 81 +++++++++++++++++++++++++++++++-------------- 1 file changed, 56 insertions(+), 25 deletions(-) diff --git a/matlab/RunOpenEMS.m b/matlab/RunOpenEMS.m index 3cd6d30..2e5d646 100644 --- a/matlab/RunOpenEMS.m +++ b/matlab/RunOpenEMS.m @@ -1,33 +1,64 @@ function RunOpenEMS(Sim_Path, Sim_File, opts, Settings) -% function RunOpenEMS(Sim_Path, Sim_File, opts, Settings) +% function RunOpenEMS(Sim_Path, Sim_File, ) % -% Run an openEMS simulation +% Run an openEMS simulation. +% +% arguments: +% Sim_Path: specifiy the simulation folder (folder must exist!) +% Sim_File: xml-filename to simulate, created by WriteOpenEMS +% +% optional arguments +% +% opts: list of openEMS options +% possible options: +% --disable-dumps Disable all field dumps for faster simulation +% --debug-material Dump material distribution to a vtk file for debugging +% --debug-PEC Dump metal distribution to a vtk file for debugging +% --debug-operator Dump operator to vtk file for debugging +% --debug-boxes Dump e.g. probe boxes to vtk file for debugging +% --debug-CSX Write CSX geometry file to debugCSX.xml +% --engine= Choose engine type +% --engine=fastest fastest available engine (default) +% --engine=basic basic FDTD engine +% --engine=sse engine using sse vector extensions +% --engine=sse_compressed engine using compressed operator + sse vector extensions +% --engine=MPI engine using compressed operator + sse vector extensions + MPI parallel processing +% --engine=multithreaded engine using compressed operator + sse vector extensions + MPI + multithreading +% --numThreads= Force use n threads for multithreaded engine +% --no-simulation only run preprocessing; do not simulate +% +% Additional global arguments +% --showProbeDiscretization Show probe discretization information +% --nativeFieldDumps Dump all fields using the native field components +% -v,-vv,-vvv Set debug level: 1 to 3 +% +% +% settings: list of Matlab settings +% possible settings: +% Settings.LogFile = 'openEMS.log' +% Settings.Silent = 0 +% +% additional remote simulation settings +% Note: ssh only on unix with working ssh client or windows with putty client +% openEMS Linux server or Windows with cygwin necessary +% Settings.SSH.host = '' +% Settings.SSH.bin = '/openEMS.sh' +% ssh optional: +% Settings.SSH.host_list = {'list','of','hosts'}; %searches for a free host +% %on Windows needed additionally +% Settings.SSH.Putty.Path = '\putty'; +% Settings.SSH.Putty.Key = '\putty_private_key.ppk'; +% +% MPI settings: +% Settings.MPI.xxx --> help RunOpenEMS_MPI +% % % example: -% Sim_Path = 'MySimPath'; -% Sim_File = 'helix.xml'; %should be created by WriteOpenEMS -% opts = '--engine=fastest'; -% -% optional: -% Note: ssh only on unix with working ssh client or windows with putty client -% openEMS Linux server or Windows with cygwin necessary -% Settings.SSH.host = '' -% Settings.SSH.bin = '/openEMS.sh' -% ssh optional: -% Settings.SSH.host_list = {'list','of','hosts'}; %searches for a free host -% %on Windows needed additionally -% Settings.SSH.Putty.Path = '\putty'; -% Settings.SSH.Putty.Key = '\putty_private_key.ppk'; +% %create CSX and FDTD +% WriteOpenEMS('/tmp/path_to_run_in/myfile.xml', FDTD, CSX) +% RunOpenEMS('/tmp/path_to_run_in','myfile.xml','-v') % -% optional MPI: -% Settings.MPI.xxx --> help RunOpenEMS_MPI -% -% Settings.LogFile = 'openEMS.log' -% Settings.Silent = 0 -% -% RunOpenEMS(Sim_Path,Sim_File,opts,Settings) -% -% See also WriteOpenEMS FindFreeSSH +% See also WriteOpenEMS FindFreeSSH InitCSX InitFDTD % % openEMS matlab interface % -----------------------