Circular variable dependency when using surface slope error model in axisymmetric coordinates

Please login with a confirmed email address before reporting spam

I have encountered a circular variable dependency error when using the Scattering Boundary's "Surface slope error" model in axisymmetric coordinates. I am not certain, but this appears to be an internal error. I would appreciate help in confirming the root cause and finding a resolution to the problem.

Briefly, the error can be replicated by:

  1. Using the Ray Optics module
  2. Choosing the axisymmetric coordinate system
  3. Creating a cylindrical domain
  4. Applying a Release from Boundary boundary condition to the lower boundary, with only a z-component
  5. Applying a Scattering Boundary boundary condition with the "Surface slope error" model selected to the upper boundary
  6. Attempting to compute a solution

I have attached two virtually identical .mph files where the only major difference is the coordinate system. The cartesian version (denoted by the suffix 'cart') runs successfully. The axisymmetric version fails with the following error:

Circular variable dependency detected. - Variable: comp1.gop.bsca1.nsr - Geometry: Rays Failed to evaluate variable. - Variable: comp1.gop.bsca1.nspr - Defined as: (comp1.gop.bsca1.t1rmcomp1.gop.bsca1.deltat1)+(comp1.gop.bsca1.nsrcomp1.gop.bsca1.deltan) Failed to evaluate variable. - Variable: comp1.gop.bsca1.costhetai - Defined as: (comp1.gop.bsca1.nsprcomp1.gop.nir)+(comp1.gop.bsca1.nspzcomp1.gop.niz) Failed to evaluate variable. - Variable: comp1.gop.bsca1.tir - Defined as: (comp1.gop.bsca1.nref_insqrt(1-(comp1.gop.bsca1.costhetai^2)))>comp1.gop.bsca1.nref_out Failed to evaluate operator. - Operator: if - Argument: comp1.gop.bsca1.tir Failed to evaluate expression. - Expression: if(comp1.gop.bsca1.tir,0,1) Failed to evaluate variable. - Variable: comp1.gop.bsca1.nsr - Defined as: if(comp1.gop.bsca1.tir,0,1) Failed to evaluate variable. - Variable: comp1.gop.bsca1.nspr - Defined as: (comp1.gop.bsca1.t1rmcomp1.gop.bsca1.deltat1)+(comp1.gop.bsca1.nsrcomp1.gop.bsca1.deltan) Failed to evaluate variable. - Variable: comp1.gop.bsca1.costhetai - Defined as: (comp1.gop.bsca1.nsprcomp1.gop.nir)+(comp1.gop.bsca1.nspzcomp1.gop.niz) Failed to evaluate variable. - Variable: comp1.gop.bsca1.tir - Defined as: (comp1.gop.bsca1.nref_insqrt(1-(comp1.gop.bsca1.costhetai^2)))>comp1.gop.bsca1.nref_out Failed to evaluate operator. - Operator: if - Argument: comp1.gop.bsca1.tir Failed to evaluate expression. - Expression: if(comp1.gop.bsca1.tir,0,1) Failed to evaluate variable. - Variable: comp1.gop.bsca1.nsr - Defined as: if(comp1.gop.bsca1.tir,0,1) Failed to evaluate variable. - Variable: comp1.gop.bsca1.nspr - Defined as: (comp1.gop.bsca1.t1rmcomp1.gop.bsca1.deltat1)+(comp1.gop.bsca1.nsrcomp1.gop.bsca1.deltan) Failed to evaluate variable. - Variable: comp1.gop.bsca1.costhetai - Defined as: (comp1.gop.bsca1.nsprcomp1.gop.nir)+(comp1.gop.bsca1.nspzcomp1.gop.niz) Failed to evaluate variable. - Variable: comp1.gop.bsca1.tir - Defined as: (comp1.gop.bsca1.nref_in*sqrt(1-(comp1.gop.bsca1.costhetai^2)))>comp1.gop.bsca1.nref_out Failed to evaluate expression. - Expression: !comp1.gop.bsca1.tir



Reply

Please read the discussion forum rules before posting.

Please log in to post a reply.

Note that while COMSOL employees may participate in the discussion forum, COMSOL® software users who are on-subscription should submit their questions via the Support Center for a more comprehensive response from the Technical Support team.