Help with analyst script Answered
I am wondering if someone can help me with my analyst script. I have a square EBSD titanium sample with a water buffer surrounding all 4 edges. I am trying to remove the top and bottom water buffer, but I can only manage to remove the top part. I have played around for a good few hours now and I can't seem to fix it.
As you can see I have removed the top water buffer part and I have tried assigning nodes etc. Its probably really simple and only one or 2 lines that need changed but I am not sure if something is defined wrong and I am unable to see it. If anyone can help, it would be greatly appreciated.
The link to my files can be found below
I have tried altering the key points in the y-direction in Lines 48 and also playing around with Lines 111 and 112 where I am assigning the water and reading in the EBSD geometry.
We can't access the files because we aren't on the strath sharepoint.
But looking at the model you shouldn't have to mess around with the keypoints.
Going of the image you shared if the first y keypoint is at the bottom of the water block and the second y keypoint is at the bottom of the titanium block then if you add this line to the site command it should remove the water
regn void $i1 $indgrd $j1 $j2
Note: $indgrd is the last keypoint on the x-axis
Add the regn command to the bottom of the site command. If you don't then it will be overwritten by the water definition.
Hi Oliver, thanks for the reply.
I have tried using the (regn void) like you suggested but I am either removing all the water or the wrong parts. I may have some parts defined wrong, I am not the best at coding and this definitely is a learning curve.
Is there a way you could access my files?
I will copy relevant parts of my code just in case its an easy fix and you can spot it.
add the following lines before the site command:
This returns the ijk-indices of the grid node closest to the spatial location (x,y,z) in integer variables. The nodal location at the start and end of the sample will be saved to the variables jb and je. You can rename these if you like.
Then make these changes to the site command:
This should work... If not can you send the files to firstname.lastname@example.org and I'll take a look.
Please sign in to leave a comment.
Didn't find what you were looking for?New post