I am trying to build a 3D spherical model. In the subsection Initial composition model, I have then set Variable names = r,theta,phi, and then set Function expression = if (r<=R2-mydepth && r>=R2-mydepth-250e3 , 1,0).
It runs fine, but when I look at the vtu file, it is clear that r is actually interpreted as x (see screenshot). Am I doing something wrong?
Hi Cedric, don’t you have something like
set coordinate system = spherical
to also specify ? at least in the minimum mesh refinement strategy, it is there.
Try setting ‘Coordinate system’ to ‘spherical’, default is ‘cartesian’