Skip to content
Snippets Groups Projects
Commit 80134529 authored by Nicolas Marsic's avatar Nicolas Marsic
Browse files

partitioning for new photon trap .geo

parent 9aad97c5
No related branches found
No related tags found
No related merge requests found
......@@ -45,10 +45,11 @@ pml_z = thick * Lambda0;
// Mesh
DefineConstant[
mAir = { 8, Name "Input/03Mesh/00Air density", Units "elem./wavelength" },
mPML = { 8, Name "Input/03Mesh/01PML density", Units "elem./wavelength" },
mMir = { 8, Name "Input/03Mesh/02Mirror density", Units "elem./wavelength" },
mO = { 2, Name "Input/03Mesh/03Order", Units "-" }
mAir = { 5, Name "Input/03Mesh/00Air density", Units "elem./wavelength" },
mPML = { 5, Name "Input/03Mesh/01PML density", Units "elem./wavelength" },
mMir = { 5, Name "Input/03Mesh/02Mirror density", Units "elem./wavelength" },
mO = { 2, Name "Input/03Mesh/03Order", Units "-" },
nPart = { 2, Name "Input/03Mesh/04#partitions", Units "-" }
];
clPML = Lambda0 / mPML;
......
// Data //
//////////
Include "cavity.dat";
Merge "cavity.msh";
// Partitioning //
//////////////////
Mesh.PartitionCreateTopology = 0;
Mesh.PartitionCreatePhysicals = 0;
Mesh.PartitionCreateGhostCells = 0;
If(nPart > 1)
PartitionMesh nPart;
Save Sprintf("cavity_part%g.msh", nPart);
EndIf
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment