To generate your field maps with Maxwell Parameter Extractor 2D, you may wish to follow this recipe:
These steps should lead to a set files with names that end on .arg and that are located in the es.pjt sub-directory of your project.
Be sure to create the E, V, \ε or \σ and weighting field maps with identical meshes and the E, V and \εor \σ maps with identical boundary conditions.
The names of these 4 files should be placed after the FILES keyword of the FIELD-MAP command, the name of the weighting field maps should be preceded by the keyword "WEIGHTING-FIELD" to distinguish it from the regular electric field map. The order is not important. There is no need to specify that the files come from Maxwell Parameter Extractor 2D.
Maxwell documentation at CERN can be found in http://wwwinfo.cern.ch/ce/ae/Maxwell/documentation.html
(Instructions from Pawel Majewski)
To generate your field maps with Maxwell\ 2D Field Simulator, you may like to follow the following recipe:
These steps should lead to a set of files with names that end on .arg and that are located in your project directory.
Be sure to create the E, V, D, \ε or \σ and weighting field maps with identical meshes and in addition the E, V and D maps with identical boundary conditions.
The names of these 4 files should be placed after the FILES keyword of the FIELD-MAP command, the name of the weighting field maps should be preceded by the keyword "WEIGHTING-FIELD" to distinguish it from the regular electric field map. The order is not important. There is no need to specify that the files come from Maxwell 2D Field Simulator.
Information about using Maxwell at CERN can be found in http://wwwinfo.cern.ch/ce/ae/Maxwell/Maxwell.html
When generating your field maps with this program, you may wish to follow this recipe:
This procedure should create maps of the electrostatic potential, the E field, the D field and perhaps of a weighting field. The dielectric constants are computed by comparing E and D. These files will be located in the efs3d.pjt sub-directory of your project.
Be sure to create the E, V, D and weighting field maps with identical meshes and the E, V and D maps with identical boundary conditions.
Information about using Maxwell at CERN can be found in http://wwwinfo.cern.ch/ce/ae/Maxwell/Maxwell.html
Beware that files produced with Maxwell Version\ 11 can be read with the interface for earlier versions, and vice-versa, but the results will be incorrect. Be sure therefore to specify the correct Maxwell version on the FIELD-MAP command line.
When you use this program to create your field maps, you have to provide the following to Garfield:
The field maps can be created as follows: After having gone through the various steps, in the "Post Process" menu, select "Nominal Problem". From the "Data" menu, select "Calculator". In the "Input" column select the "Qty" menu where you pick "phi". In the "Output" column select "Write\ ..." and write out the field to a file called, for instance, "V.reg". Repeat the same steps replacing "phi" by "E" and "D".
Be sure to create the E, V, D and weighting field maps with identical meshes and the E, V and D maps in addition with identical boundary conditions.
Information about using Maxwell at CERN can be found in http://wwwinfo.cern.ch/ce/ae/Maxwell/Maxwell.html
After having worked your way through the various steps from model definition till problem solving, click on "Post\ Process\ ..." and enter "Data/Calculator". Then:
Alternatively, the electric field can be derived from the potential by selecting the COMPUTE-ELECTRIC-FIELD option. Several users have reported problems with the electric field maps as exported by Maxwell and this approach can therefore be recommended.
When using Maxwell SV, you have to feed the following files to Garfield:
An axis of rotational symmetry, if any, should be detected automatically and result in the Z-ROTATIONALLY-SYMMETRIC option being switched on.
(Procedure from Pawel Majewski.)
The files "username1.table" and "username2.table" (see item\ 6 and 10 above) are now ready for Garfield.
A Garfield input file that uses "username.table" and "username1.table" can be found in http://consult.cern.ch/writeup/garfield/examples/tosca/example
A single Tosca generated map can contain various kinds of data, such as the potential, the electric field and the D field. Since the file contains a description of the data, the contents field should only make clear that the file is not a mesh file. One can therefore set the contents field on the FIELD-MAP command to be any of the contained items.
It is advisable to use the INTERPOLATE-ELECTRIC-FIELD option when using Tosca field maps.
(Recipe from Guido Maria Urciuoli, INFN Gruppo Collegata Sanitá, Viale Regina Elena 299, 00161 Roma, Italia.)
The Tosca file, called a "simulation database" in Tosca-speak, should contain at least the following Tosca "datasets":
After the model has been created in the Modeller, create the simulation database with
To achieve this, enter at the console:
SOLVERS PROGRAM=&VF_ANALYSISTYPE& -SOLVENOW OPTION=NEW ELEMENT=QUADRATIC SURFACE=CURVED FILE='YourFileName.op3';or follow the GUI path:
Model \→ Create Analysis Database...
In the post-processor export the results to an I-DEAS Universal File, where it important is to set BASIS=ELEMENT, i.e. write values at every node of every element:
As a console command:
IDEAS FILE='YourFileName.unv' MODE=CREATE TYPE=REAL BASIS=ELEMENT FIELD=SCALAR COMP=V;or using the GUI:
Tables \→ SDRC I-DEAS Unv File...
(Recipe provided by Konstantin Klementiev <kklementiev@cells.es>.)
These elements have only 3 nodes, the potential is linear within each element and the local gradient is constant.
Although such field maps can be read, their use is not recommended. Use instead COMSOL-2D-QUADRATIC.
For the recipe to write such field maps, please refer to COMSOL-3D-QUADRATIC.
Garfield doesn't recognise this format automatically, be sure therefore to specify that your field map is in COMSOL-2D-QUADRATIC format.
You may specify a distance unit for such field maps, centimetres are assumed if no unit is given.
Example:
&CELL field-map files potential "COMSOLFIELD2D.txt" ... weighting-field "COMSOLFIELD2DElectrode1.txt" label s ... comsol-2dTwo potential maps are read, the first contains the potential, the second the weighting potential for one of the electrodes. The latter is associated with label S which is later used in the signal section to plot the weighting field map.
These elements have only 4 nodes, the potential is linear within each element and the local gradient is constant.
Although such field maps can be read, their use is not recommended. Use instead COMSOL-3D-QUADRATIC.
Garfield doesn't recognise this format automatically, be sure therefore to specify that your field map is in COMSOL-3D format.
You may specify a distance unit for such field maps, centimetres are assumed if no unit is given.
First, solve your problem in COMSOL. Take care to select 2nd order Lagrange elements. Then export the field map as follows:
To import the file in Garfield:
Example:
&CELL field-map files "exported.txt" comsol-3d save-field-map "exported.bin"
(Recipe written by Jeremy Janney <JJanneySG@hotmail.com> and Sven Lotze <lotze@physik.rwth-aachen.de>.)
ANSYS will occasionally generate degenerate quadrilaterals, which are curved quadratic triangles.
The recipe assumes that the command format is used. Most of the commands cited can of course also be run from the GUI.
FINISH /CLEAR,START /PREP7
KEYW,PR_ELMAG,1 KEYW,MAGELC,1Disable the p-method solution options. This option leads to elements of higher polynomial order, which are a priori preferred, but Garfield does not yet have shape functions for these.
/PMETH,OFF,1
ET,1,PLANE121In case your chamber has rotational symmetry around an axis, a non-default element behaviour needs to be selected:
ET,1,PLANE121 ! Select plane quadrilaterals KEYOPT,1,3,1 ! Declare the element to be axisymmetricIn ANSYS, the y-axis acts as axis of rotational symmetry and no part of the model should be located in x\ \<\ 0. When reading the field map with Garfield, you have to declare the symmetry again using X-ROTATIONALLY-SYMMETRIC, Y-ROTATIONALLY-SYMMETRIC or Z-ROTATIONALLY-SYMMETRIC.
For instance, to define a perfect conductor (material\ 1) and a dielectricum (material\ 2):
MP, PERX, 1, 1e10 ! Metal MP, RSVX, 1, 0.0 MP, PERX, 2, 4.5 ! Bulk dielectric constant
! Define some dimensions, in microns halfpitch = 50 thickbulk = 200 halfstrip = 20 thickstrip = 5BLC4, 0, 0, halfpitch, thickbulk ! Area 1: dielectricum BLC4, 0, 0, halfstrip, thickstrip ! Area 2: conductor ASBA, 1, 2, , , KEEP ! Area 1 becomes area 3
AGLUE, ALL ! Glue everything
ASEL, S, , , 3 ! Select the dielectricum AATT, 2 ! Properties of material 2 ASEL, S, , , 2 ! Select the conductor AATT, 1 ! Properties of material 1
ASEL, S, , , 2 ! Select the metal LSLA, S ! Select all its border lines DL, ALL, 2, VOLT, 1000 ! Set the borders to 1000 VASEL, S, , , 3 ! Select the dielectricum LSLA, S ! Select all its border lines LSEL, R, LOC, Y, thickbulk ! Sub-select lines at y=thickbulk DL, ALL, 3, VOLT, 0 ! Set this line to 0 V
ASEL, S, , , 3 LSLA, S LSEL, R, LOC, X, 0 ! Select the lines at x=0 DL, ALL, 3, SYMM ! Impose a symmetry condition ASEL, S, , , 3 LSLA, S LSEL, R, LOC, X, halfpitch ! Idem for y=halfpitch DL, ALL, 3, SYMM
LSEL,ALL ASEL, ALL MSHKEY,0 SMRT, 3 AMESH, 2,3It is not always necessary to mesh the metal parts of the device. Then solve the problem:
/SOLU SOLVE FINISHOptionally visualise the solution:
/POST1 /EFACET,1 PLNSOL, VOLT,, 0
/OUTPUT, PRNSOL, lis PRNSOL /OUTPUTThere is no need to write the electric field to a file since the COMPUTE-ELECTRIC-FIELD option is implied when using ANSYS.
The PRNSOL file contains the potentials at the nodes. When interpolating between nodes, Garfield needs to know where each of these nodes is located in space. This information is contained in the output of the NLIST command, which should be written to a file called "NLIST.lis". Note the COORD option - without this option, the file would contain additional information which is not used in Garfield, at the price of reduced precision in the node coordinates. Garfield can read files in either format - but the COORD option is recommended.
/OUTPUT, NLIST, lis NLIST,,,,COORD /OUTPUTGarfield also needs to know how the nodes are tied into elements. This structure is shown by the ELIST command, of which the output has to be written to a file called "ELIST.lis":
/OUTPUT, ELIST, lis ELIST /OUTPUTOptionally, you may transmit the dielectric constants (permittivities) and the electric resistivities to Garfield. Only write this file if your material properties do not have a temperature dependence. The commands for writing the "MPLIST.lis" file are as follows:
/OUTPUT, MPLIST, lis MPLIST /OUTPUTIf you produce the field maps on operating systems like Windows, control-M will be appended to each line. These need to be removed before the field maps can be read with Garfield.
Since ANSYS allows the user to use any consistent system of units, the real size of the device can not be found in the field map files. The user therefore has to specify the distance UNIT.
&CELL field-map files "../scratch0/PRNSOL.lis" ansys-plane-121 ... x-mirror-periodic unit micron&FIELD area -0.0100 0 0.0100 0.0200 plot-field cont v
In order to compute signals, Garfield needs weighting fields. Refer to the ANSYS-solid-123 recipe.
The recipe assumes that the command format is used. Most of the commands cited can of course also be run from the GUI.
FINISH /CLEAR,START /PREP7
KEYW,PR_ELMAG,1 KEYW,MAGELC,1Disable the p-method solution options. This option leads to elements of higher polynomial order, which are a priori preferred, but Garfield does not yet have shape functions for these.
/PMETH,OFF,1
ET,1,SOLID123
For instance, to define a perfect conductor (material\ 1), a gas (material 2) and a dielectricum (material\ 3):
MP,PERX,1,1e10 ! Metal MP,RSVX,1,0 ! MP,PERX,2,1 ! Gas MP,PERX,3,4.5 ! Dielectricum
VSEL, S, VOLU, , 2 ! Select volume 2 ASLV, S ! Select all areas belonging to the selected volumes DA, ALL, VOLT, 100 ! Set a voltage boundary on all selected areasSimilarly, a symmetry boundary on all selected areas can be set with the command:
DA, ALL, SYMM
SMRT, 2 MSHKEY,0 VMESH, 1, 3 VMESH, 15It is not always necessary to mesh the metal parts of the device. Then solve the problem:
/SOLU SOLVEOptionally visualise the solution:
/POST1 /EFACET,1 PLNSOL, VOLT,, 0
/OUTPUT, PRNSOL, lis PRNSOL /OUTPUTThere is no need to write the electric field to a file since the COMPUTE-ELECTRIC-FIELD option is implied when using ANSYS.
The PRNSOL file contains the potentials at the nodes. When interpolating between nodes, Garfield needs to know where each of these nodes is located in space. This information is contained in the output of the NLIST command, which should be written to a file called "NLIST.lis". Note the COORD option - without this option, the file would contain additional information which is not used in Garfield, at the price of reduced precision in the node coordinates. Garfield can read files in either format - but the COORD option is recommended.
/OUTPUT, NLIST, lis NLIST,,,,COORD /OUTPUTGarfield also needs to know how the nodes are tied into elements. This structure is shown by the ELIST command, of which the output has to be written to a file called "ELIST.lis":
/OUTPUT, ELIST, lis ELIST /OUTPUTOptionally, you may transmit the dielectric constants (permittivities) and the electric resistivities to Garfield. Only write this file if your material properties do not have a temperature dependence. The commands for writing the "MPLIST.lis" file are as follows:
/OUTPUT, MPLIST, lis MPLIST /OUTPUTIf you produce the field maps on operating systems like Windows, control-M will be appended to each line. These need to be removed before the field maps can be read with Garfield.
Since ANSYS allows the user to use any consistent system of units, the real size of the device can not be found in the field map files. The user therefore has to specify the distance UNIT.
field-map files "PRNSOL.lis" units=mm ansys-solid-123
In order to compute signals, Garfield needs weighting fields. These are obtained by setting the read-out electrodes to a potential of\ 1 and all other electrodes to a potential of\ 0.
Garfield requires the weighting fields and the main field map to share one and the same mesh. To achieve this, follow the above recipe until the end, then clear the existing loads (LSCLEAR), apply new loads and solve without meshing again. This is illustrated in the following example of 3\ strips:
FINISH /CLEAR,START /PREP7 ! No polynomial elements /PMETH,OFF,1 ! Set electric preferences KEYW,PR_ELMAG,1 KEYW,MAGELC,1 ! Select element ET,1,SOLID123 ! Material properties MP,PERX,1,1e10 ! Metal MP,RSVX,1,0.0 ! MP,PERX,2,1.0 ! Gas MP,PERX,3,4.0 ! Permittivity of FR4 ! Construct the structure metal = 0.2 gas = 2 sub = -1 BLOCK, -10, -5, -10, 10, 0, metal ! 1: Wide side strip BLOCK, -2, -4, -10, 10, 0, metal ! 2: First signal BLOCK, -1, 1, -10, 10, 0, metal ! 3: 2nd signal BLOCK, 2, 4, -10, 10, 0, metal ! 4: 3rd signal BLOCK, 5, 10, -10, 10, 0, metal ! 5: Wide side strip BLOCK, -10, 10, -10, 10, sub, 0 ! 6: Substrate BLOCK, -10, 10, -10, 10, 0, gas ! 7: Gas ! Subtract the strips from the gas VSBV, 7, 1, , , KEEP ! 7 \→ 8 VSBV, 8, 2, , , KEEP ! 8 \→ 7 VSBV, 7, 3, , , KEEP ! 7 \→ 8 VSBV, 8, 4, , , KEEP ! 8 \→ 7 VSBV, 7, 5, , , KEEP ! 7 \→ 8 ! Glue everything together 1 = left wide, 2, 3, 4, 5 = wide, 7 = sub, 8 = gas VGLUE, ALL ! Assign material attributes VSEL, S, VOLU, , 1, 5 ! Metal strips VATT, 1, ,1 VSEL, S, VOLU, , 7 ! Gas volume VATT, 3, ,1 VSEL, S, VOLU, , 8 ! Substrate VATT, 2, ,1 ! Voltage boundary conditions on the metal VSEL, S, VOLU, , 1, 5 ! All strips at ground ASLV, S DA, ALL, VOLT, 0 ASEL, S, LOC, Z, gas ! Drift electrode DA, ALL, VOLT, -1000 ASEL, S, LOC, Z, sub ! Back plane DA, ALL, VOLT, 0 ! Meshing options VSEL, S, VOLU, , 8 ! Only mesh the gas ASLV, S MSHKEY,0 SMRT, 4 VMESH, 1,8 ! Solve the field /SOLU SOLVE ! Write the solution /POST1 /OUTPUT, field, lis PRNSOL /OUTPUT ! Change to weighting field boundary conditions for first narrow strip /SOLU LSCLEAR,ALL VSEL, S, VOLU, , 1 VSEL, A, VOLU, , 3, 5 ASLV, S DA, ALL, VOLT, 0 VSEL, S, VOLU, , 2 ASLV, S DA, ALL, VOLT, 1 ASEL, S, LOC, Z, gas DA, ALL, VOLT, 0 ASEL, S, LOC, Z, sub DA, ALL, VOLT, 0 ! Meshing options VSEL, S, VOLU, , 1, 8 ASLV, S ! Solve the field SOLVE ! Write the solution /POST1 /OUTPUT, weight1, lis PRNSOL /OUTPUT ! Change to weighting field boundary conditions for 2nd narrow strip /SOLU LSCLEAR,ALL VSEL, S, VOLU, , 1, 2 VSEL, A, VOLU, , 4, 5 ASLV, S DA, ALL, VOLT, 0 VSEL, S, VOLU, , 3 ASLV, S DA, ALL, VOLT, 1 ASEL, S, LOC, Z, gas DA, ALL, VOLT, 0 ASEL, S, LOC, Z, sub DA, ALL, VOLT, 0 ! Meshing options VSEL, S, VOLU, , 1, 8 ASLV, S ! Solve the field SOLVE ! Write the solution /POST1 /OUTPUT, weight2, lis PRNSOL /OUTPUT ! Change to weighting field boundary conditions for last narrow strip /SOLU LSCLEAR,ALL VSEL, S, VOLU, , 1, 3 VSEL, A, VOLU, , 5 ASLV, S DA, ALL, VOLT, 0 VSEL, S, VOLU, , 4 ASLV, S DA, ALL, VOLT, 1 ASEL, S, LOC, Z, gas DA, ALL, VOLT, 0 ASEL, S, LOC, Z, sub DA, ALL, VOLT, 0 ! Meshing options VSEL, S, VOLU, , 1, 8 ASLV, S ! Solve the field SOLVE ! Write the solution /POST1 /OUTPUT, weight3, lis PRNSOL /OUTPUT ! Write the mesh to files /OUTPUT, NLIST, lis NLIST,,,,COORD /OUTPUT /OUTPUT, ELIST, lis ELIST /OUTPUT /OUTPUT, MPLIST, lis MPLIST /OUTPUT ! Show the solution /EFACET,1 PLNSOL, VOLT,, 0
After processing this, the following files should have been created:
These files can be processed in Garfield with the following commands:
&CELL Global bin `strips.bin` If exist(bin) Then // Read binary if it exists read-field-map {bin} Else field-map files potential "~/scratch0/field.lis" ... weighting-field "~/scratch0/weight1.lis" label a ... weighting-field "~/scratch0/weight2.lis" label b ... weighting-field "~/scratch0/weight3.lis" label c ... units=cm ... ansys-solid-123 save-field-map {bin} // Otherwise, create a binary Endif &GAS arg-50-eth-50 // For demonstration only ... &SIGNAL area -5 -10 -2 5 10 8 x-z window 0 0.0005 // Sample signals every 0.5 nsec select a b c // Read out all electrodes grid 50 // Improve granularity plot-field vect ewx, ewy, ewz // Plot the weighting fields Call plot_drift_area Call drift_electron_3(-2, 0, 1.8) // Drift one electron Call plot_drift_line Call add_signals Call plot_end plot-signals // Show signals
Please refer to http://www.quickfield.com/demo/manual.pdf
The recipe for making such field maps is similar to that for earlier versions like Field-Simulator-3D, with the exception that the solids file (with extension .shd) will be called "fields.shd", independent of the mesh iteration and it will be located in a different directory.
Beware that files produced with Maxwell Version\ 11 can be read with the interface for earlier versions, and vice-versa, but the results will be incorrect. Be sure therefore to specify the correct Maxwell version on the FIELD-MAP command line.
Use of the DELETE-BACKGROUND option is mandatory with this format.
Formatted on 21/01/18 at 16:55.