Change Scraper direction or insert_from with alter Element

Moderators: cyao, michael_borland

Post Reply
Youssef
Posts: 12
Joined: 13 Jun 2018, 14:50

Change Scraper direction or insert_from with alter Element

Post by Youssef » 11 Sep 2018, 04:18

Dear all,

1-) I am trying to use alter_elements to modify the direction of the SCRAPER element with no luck.
It appears that the "alter_elements" command does not work for changing the direction or (insert_from).

For example:

&alter_elements
name = SCRAP
item = DIRECTION
value = 2
&end
&alter_elements
name = SCRAP
item = POSITION
value = -0.001
&end

or
&alter_elements
name = SCRAP
item = INSERT_FROM
string_value = "-x"
&end
&alter_elements
name = SCRAP
item = POSITION
value = -0.001
&end

my scraper definition:
!SCRAP: SCRAPER, INSERT_FROM="+x", POSITION=-0.1
SCRAP: SCRAPER, DIRECTION=0, POSITION=0

I know I can make the changes in the lattice but I want to scan many positions for the scraper, it is easier to change it with alter_elements.
Is there any possibility to do it?

2-) If I have the scraper definition with "INSERT_FROM" and make output for all parameters, the values for the directions are "-1". So If I want to parse the parameters values to know which direction have the scrapers, it does not help. Is that correct, that all directions parameters are "-1" ?

3-) What is the effect of "INSERT_FROM = x"? oder "INSERT_FROM = y"?

Could you help me to find a solution?

Thanks in advance

Youssef

michael_borland
Posts: 1927
Joined: 19 May 2008, 09:33
Location: Argonne National Laboratory
Contact:

Re: Change Scraper direction or insert_from with alter Element

Post by michael_borland » 19 Sep 2018, 17:02

Youssef,

Unfortunately, there's apparently a bug that prevents changing the DIRECTION or INSERT_FROM parameters using &alter_elements. You can change the POSITION parameter, however. We'll try to fix this in the next release.

Using INSERT_FROM="x" or INSERT_FROM="y" means the scraper is from both sides.

--Michael

Youssef
Posts: 12
Joined: 13 Jun 2018, 14:50

Re: Change Scraper direction or insert_from with alter Element

Post by Youssef » 20 Sep 2018, 08:01

Hi Michael,

thank you for your reply. But Insert_from = "x" or insert_from = "y" does not work as a scraper from both sides.

Regards,
Youssef

michael_borland
Posts: 1927
Joined: 19 May 2008, 09:33
Location: Argonne National Laboratory
Contact:

Re: Change Scraper direction or insert_from with alter Element

Post by michael_borland » 20 Sep 2018, 08:52

Youssef,

Yes, you are correct. We'll fix that in the next release as well.

--Michael

Youssef
Posts: 12
Joined: 13 Jun 2018, 14:50

Re: Change Scraper direction or insert_from with alter Element

Post by Youssef » 20 Sep 2018, 10:39

Hi Michael,

thank you.

Regards,
Youssef

Post Reply