Page 1 of 2
Rectangular aperture in field map
Posted: Thu 25 Mar 2021 01:43
by shliu
Hi Didier,
I noticed there's a way to define the aperture in field maps with .ouv file, but the aperture is round. I'm wondering if it's possible to define rectangular aperture? I was doing some work about dipole field maps, in which the aperture is a rectangle.
Kinds,
shliu
Re: Rectangular aperture in field map
Posted: Thu 25 Mar 2021 13:39
by Didier
Hi Shliu,
Actually, there are 3 ways..
You can also overlay a 3D aperture map "FIELD_MAP 1000 ...". It allows you to define any form of aperture.
Regards,
Didier
Re: Rectangular aperture in field map
Posted: Thu 25 Mar 2021 14:49
by shliu
Hi Didier,
I don't quite get your point. "FIELD_MAP 1000 ..." also defines round apertures, right?
Re: Rectangular aperture in field map
Posted: Thu 25 Mar 2021 15:45
by Didier
Sorry, type is 10000, corresponding to 3D aperture map. An usual 3D Field map syntax, but where '1' is matter and '0' is vacuum
Didier
Code: Select all
geom parameter is an integer, made of 5 figures, defining the field map type :
o unit figure (10^0) : static electric field,
o tens figure (10^1) : static magnetic field,
o hundreds figure (10^2) : RF electric field,
o thousands figure (10^3) : RF magnetic field,
o ten thousands figure (10^4) : 3D aperture map (since 2.4.0.1 version),
Re: Rectangular aperture in field map
Posted: Thu 25 Mar 2021 16:17
by shliu
OK, I see. In that case, "Ka" should be set to 0 if my understanding is correct? And how to define the field_map file (I mean, it is still in .ouv file or just field map files)?
Re: Rectangular aperture in field map
Posted: Thu 25 Mar 2021 17:53
by Didier
Hi,
Typically you use one of your 3 field_map of your magnetic element, where you replace field value by '0':vaccum and the rest is set to '1':materail
Whatever ka or ke. This should represent your actual aperture.
Regards,
Didier
Re: Rectangular aperture in field map
Posted: Thu 25 Mar 2021 18:11
by shliu
I see. Thank you!
Re: Rectangular aperture in field map
Posted: Fri 26 Mar 2021 10:03
by shliu
Hi Didier,
My lattice file is written as below:
Field_map_path Field_Maps/3D
SUPERPOSE_MAP 0 0 0 0 0 0
FIELD_MAP 0070 1160 0 150 -1.08704 0 0 0 Q1 0
SUPERPOSE_MAP 0 0 0 0 0 0
FIELD_MAP 10000 1160 0 150 -1.08704 0 0 0 Q1_APTR 0
SUPERPOSE_MAP 1000 0 0 0 0 0
FIELD_MAP 0070 1000 0 250 1.01208 0 0 0 Q2 0
end
The Q1_APTR.bsz file is written as:
232 1.160000
120 -0.300000 0.300000
32 -0.080000 0.080000
1
1
1
...
0
0
0
...
1
1
1
...
There's an error saying that the .ouv file is needed.
So are there any mistakes? Or do you mind sharing a simple example?
Kinds,
Shliu
Re: Rectangular aperture in field map
Posted: Fri 26 Mar 2021 14:21
by Didier
Dear Shliu,
Simply, you aperture field_map file name must be "Q1_APTR.ouv" !
Regards,
Didier
Re: Rectangular aperture in field map
Posted: Fri 26 Mar 2021 15:52
by shliu
Seems it works. Thank you!