This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Last revision Both sides next revision | ||
fdtd:tetrahedral_meshes [2018/02/02 09:24] pklapetek |
fdtd:tetrahedral_meshes [2018/02/02 09:27] pklapetek |
||
---|---|---|---|
Line 25: | Line 25: | ||
* Enable proportional editing on the bottom panel (Mesh->Proportional Editing->Enable). | * Enable proportional editing on the bottom panel (Mesh->Proportional Editing->Enable). | ||
* Click on any sphere face by right mouse button and drag it somewhere, sphere should get distorted. Click on the left button to release the mouse. You can repeat this to create shape you like. There are also many other modeling tools if you want to do something really nice. This is how your particle could look like in Blender, after all this editing. | * Click on any sphere face by right mouse button and drag it somewhere, sphere should get distorted. Click on the left button to release the mouse. You can repeat this to create shape you like. There are also many other modeling tools if you want to do something really nice. This is how your particle could look like in Blender, after all this editing. | ||
+ | |||
+ | {{ :samples:ex6_blender.png?400 |}} | ||
+ | |||
+ | |||
* Then run File->Export->Stanford (.ply) to save your object into format that can be used further. | * Then run File->Export->Stanford (.ply) to save your object into format that can be used further. | ||
* Install Tetgen if you haven't done so before. Assuming that you named your object file "particle.ply", call tetgen -p particle.ply | * Install Tetgen if you haven't done so before. Assuming that you named your object file "particle.ply", call tetgen -p particle.ply | ||
Line 34: | Line 38: | ||
</code> | </code> | ||
- | This means adding mesh (type of object = 21), written in particle.1.ele and particle.1.node, using no material attributes, magnifying it by factor of 30,30,30 (in x,y,z direction) and shifting to 90, 100, 100. It will be filled with dielectric material with relative permittivity of 3. Note that particle needs to be within the force evaluation box. This is how it might look after setting it up: | + | This means adding mesh (type of object = 21), written in particle.1.ele and particle.1.node, using no material attributes, magnifying it by factor of 30,30,30 (in x,y,z direction) and shifting to 90, 100, 100. It will be filled with dielectric material with relative permittivity of 3. Note that particle needs to be within the force evaluation box. This is how it might look after setting it up, if you open the files in XSvit: |
+ | |||
+ | {{ :samples:ex6_outblend.png?400 |}} | ||