Skip to content

Problem with aspect ratio #205

Answered by rquey
asmaaharfoush asked this question in Q&A
May 3, 2021 · 2 comments · 6 replies
Discussion options

You must be logged in to vote

This discussion follows this comment. In the command I provided, note that I did not use aspratio to generate elongated grains. This is because it is not appropriate when the elongation direction is other than the sample directions (x, y, z). Instead, I used a combination of scalings (to get the aspect ratio) and rotations (to get them in the required directions). See this discussion for details on aspratio.

In your case, do not use aspratio and play with the parameters of the scale transformations:

for i in 1 4 7
do
  val1=`echo "sqrt($i)" | bc -l`
  val2=`echo "1/sqrt($i)" | bc -l`

  neper -T -n 1000 -dim 2 -domain "square(1,1):rotate(0,0,1,25):scale($val2,$val1,1)" -transform "scale($…

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
6 replies
@rquey
Comment options

rquey May 7, 2021
Maintainer

@asmaaharfoush
Comment options

@rquey
Comment options

rquey May 7, 2021
Maintainer

@asmaaharfoush
Comment options

@rquey
Comment options

rquey May 7, 2021
Maintainer

Answer selected by rquey
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants