Geometries Design
中文/English
Checked out the simulation geometries, and then press 【輸出 Output】button to output the geometries files
Data_Materials.csv // (simulation index of structures)
Other simulation files refer to below figures:
Detailed Instructions :
The figures show below are output file : the file name; the variable matrix : the variable in Matlab GUI; and the default value.
if we set the total grid size:
X=120;
Y=130;
Z=140;
then size(geox)=120,130,140
The following are the methods that can create the geometries for FonSinEM
Method 1 Input Structure
Example : a metallic sphere
【Input panel】use the built-in geometries function : Iso_Sphere
%=================球 sphere===========================
radius=150e-9; %diameter=2*radius
nindex=1^2;
sigma=0;
choice='E_Model1'; %E_Iso,PEC,M_Iso,PMC,E_Model1,M_Model1,EM_Model1
gridtype=-1; %electric material -1; magnetic material 1; other 0
xposition=icenter*gdx;
yposition=jcenter*gdy;
zposition=kcenter*gdz;
Iso_Sphere(choice,gridtype,nindex,sigma,xposition,yposition,zposition,radius)
%=================球 sphere===========================
The FonSinEM built-in function text file is 『FonSinEM_Geometries.txt』.
Also you can open this file at 【指令變數(Command Variables)=>結構(Geometries)】
To create a geometries step
1. checked the 【☑結構設計(Design Structures)】 and checked the materials if will be used
2. push the 【☑建立 (create)】 button
two methods
3a. method 1 : input the geometries function in 【input panel】
3b. method 2 :import 2D figure or 3D CAD (*.STL) file
4.plot the geometries and check it if correct.
5.push the 【☑輸出結構 (Output. geo)】 botton.
Method 2 Import Structure
The second method are import a figure or import 3D CAD models (*.STL format) into FonSinEM, The detail describe in the following link.
Load 2D Figure Structure
https://sites.google.com/site/fonsinem/jie-gou-she-ji/er-wei-tu-pian-zai-ru
Load 3D CAD Model
https://sites.google.com/site/fonsinem/importmodel
Load 3D CAD Model Example
https://sites.google.com/site/fonsinem/importmodel/importcadsample01
To use other program like Scilab, octave, FreeMat
Download the FonSinEM_WriteStructures.zip and then see the example below.
create the geometry by using other software
- clear;clear global; clc;
- Globalsetup;
- ReadParameters;
- %--------------------------------------------------
- radius=150.e-9;
- nindex=1^2;
- sigma=0;
- for k=1:kb;
- for j=1:jb;
- for i=1:ib;
- check=(radius)^2-( (i*gdx-icenter)^2+(j*gdy-jcenter)^2+(k*gdz-kcenter)^2);
- if( check >= 0);
- Material_E_Model1_m1;
- end
- end
- end
- end
- %======================
- % Output Parameters
- %======================
- WriteParameters
Hinet link
http://fonsinem.myweb.hinet.net/FonSinEM_WriteStructures.zip
Mega link
https://mega.nz/#!ftcyiRyL!0M5q_w3UAXsYBjK2FT-8n-kqABLihWh_gdMSJomiPS8