scales=domain.dealias

93 views
Skip to first unread message

Jack

unread,
Mar 11, 2022, 5:21:16 PM3/11/22
to Dedalus Users
Hello,

In Dedalus (v2.2006), should one always use "scales = domain.dealias" when defining a field to insert into the equation? Or does it not make any difference? I am confused with the use of scales. For example a force or an initial condition for an IVP. 


scales=domain.dealias


Particularly, one can compare

    gshape = domain.dist.grid_layout.global_shape(scales=1)

vs

gshape = domain.dist.grid_layout.global_shape(scales=domain.dealias)[:2]

in 


vs



Thanks, 
Jack

Keaton Burns

unread,
Mar 13, 2022, 2:33:38 PM3/13/22
to dedalu...@googlegroups.com
Hi Jack,

In general it’s fine to either set initial conditions with scales=1 or scales=dealias.  The dealias scales are what are used when evaluating operators.  It can therefore be easier to use these scales if you’re computing some operations on fields and using these to set the values of other fields, or are saving data during the main loop, etc.  However it’s also fine to always use scales=1, you just have to remember to change the scales to 1 for fields that are from or have been used in evaluating some operator.

Best,
-Keaton


--
You received this message because you are subscribed to the Google Groups "Dedalus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dedalus-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dedalus-users/1bbeb387-72e7-40a3-832d-ffebdbb1cec4n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages