Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.

Integrate Series of Cut Planes

Please login with a confirmed email address before reporting spam

I want to integrate a series of xy cut planes in a 3D model. I have been doing this manually changing z each time: z=0,100,200,300....Ideally I would like finer increments and a more automated way to do this. Is there a way to do this? Maybe make a table somehow?

2 Replies Last Post 18.12.2015, 15:02 GMT-5
Jeff Hiller COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 9 years ago 18.12.2015, 14:05 GMT-5
Hi Paul,
The same question was addressed very recently in the Forum.
See www.comsol.com/community/forums/general/thread/94851/#p220002
Best,
Jeff
Hi Paul, The same question was addressed very recently in the Forum. See http://www.comsol.com/community/forums/general/thread/94851/#p220002 Best, Jeff

Please login with a confirmed email address before reporting spam

Posted: 9 years ago 18.12.2015, 15:02 GMT-5
Thanks, Jeff.

I hadn't found the discussion from earlier this month, but I did find that link to the blog. I've had some troubles with that. I did exactly what it said (but instead of spf.U, I used ewbe.Poavz), and I got a huge error screen:

Failed to evaluate variable.
- Variable: freq
- Geometry: 1
- Domain: 2
Failed to evaluate variable.
- Variable: comp1.ewbe.freq
- Defined as: freq
Failed to evaluate variable.
- Variable: comp1.ewbe.omega
- Defined as: (comp1.ewbe.freq*(2*pi))
Failed to evaluate variable.
- Variable: comp1.ewbe.iomega
- Defined as: (comp1.ewbe.omega*i)
Failed to evaluate variable.
- Variable: comp1.ewbe.k0
- Defined as: ((sqrt((mu0_const*epsilon0_const))*comp1.ewbe.iomega)/i)
Failed to evaluate variable.
- Variable: comp1.ewbe.k
- Defined as: (sqrt((((comp1.ewbe.murzz*comp1.ewbe.epsilonrzz)+((comp1.ewbe.epsilonryy*comp1.ewbe.muryy)+(comp1.ewbe.murxx*comp1.ewbe.epsilonrxx)))/3))*comp1.ewbe.k0)
Failed to evaluate expression.
- Expression: comp1.ewbe.k
Failed to evaluate operator.
- Operator: mean
- Geometry: 1
- Boundary: 7 20
Failed to evaluate expression.
- Expression: mean(comp1.ewbe.k)
Failed to evaluate variable.
- Variable: comp1.ewbe.k
- Geometry: 1
- Boundary: 7 20
Failed to evaluate variable.
- Variable: comp1.ewbe.alphaport_1
- Defined as: (if(((real((52881.9632015303+(12287143.604786191*i)))*imag((52881.9632015303+(12287143.604786191*i))))<0),(-1),1)*sqrt(((((((f0*(i*(comp1.ewbe.k*2)))*pi)/comp1.ewbe.iomega)^2)+((52881.9632015303+(12287143.604786191*i))^2))-(comp1.ewbe.k^2))))
Failed to evaluate expression.
- Expression: (j*(-comp1.ewbe.alphaport_1))
Failed to evaluate expression.
- Expression: comp1.ewbe.intport1((j*(-comp1.ewbe.alphaport_1)))
Failed to evaluate variable.
- Variable: comp1.ewbe.beta_1
- Defined as: (comp1.ewbe.intport1((j*(-comp1.ewbe.alphaport_1)))/comp1.ewbe.Area_1)
Failed to evaluate variable.
- Variable: comp1.ewbe.phi1
- Defined as: (comp1.ewbe.posz*comp1.ewbe.beta_1)
Failed to evaluate variable.
- Variable: comp1.ewbe.expPhi1
- Defined as: exp(((-i)*comp1.ewbe.phi1))
Failed to evaluate variable.
- Variable: comp1.ewbe.curlE1y
- Defined as: (comp1.ewbe.expPhi1*((comp1.E1x*((-comp1.ewbe.k1z)*i))+comp1.curlE1y))
Failed to evaluate variable.
- Variable: comp1.ewbe.dBdt1y
- Defined as: (-comp1.ewbe.curlE1y)
Failed to evaluate variable.
- Variable: comp1.ewbe.dHdt1y
- Defined as: ((comp1.ewbe.murinvyy*comp1.ewbe.dBdt1y)/mu0_const)
Failed to evaluate variable.
- Variable: comp1.ewbe.dHdty
- Defined as: comp1.ewbe.dHdt1y
Failed to evaluate variable.
- Variable: comp1.ewbe.Hy
- Defined as: (comp1.ewbe.dHdty/comp1.ewbe.iomega)
Failed to evaluate expression.
- Expression: conj(comp1.ewbe.Hy)
Failed to evaluate expression.
- Expression: real(((conj(comp1.ewbe.Hy)*comp1.ewbe.Ex)-(comp1.ewbe.Ey*conj(comp1.ewbe.Hx))))
Failed to evaluate variable.
- Variable: comp1.ewbe.Poavz
- Defined as: (0.5*real(((conj(comp1.ewbe.Hy)*comp1.ewbe.Ex)-(comp1.ewbe.Ey*conj(comp1.ewbe.Hx)))))
Failed to evaluate expression.
- Expression: real(comp1.ewbe.Poavz)
Failed to evaluate expression.
- Expression: real(comp1.ewbe.Poavz)

Any tips here? I can do this manually just fine, but something is odd here.
Thanks, Jeff. I hadn't found the discussion from earlier this month, but I did find that link to the blog. I've had some troubles with that. I did exactly what it said (but instead of spf.U, I used ewbe.Poavz), and I got a huge error screen: Failed to evaluate variable. - Variable: freq - Geometry: 1 - Domain: 2 Failed to evaluate variable. - Variable: comp1.ewbe.freq - Defined as: freq Failed to evaluate variable. - Variable: comp1.ewbe.omega - Defined as: (comp1.ewbe.freq*(2*pi)) Failed to evaluate variable. - Variable: comp1.ewbe.iomega - Defined as: (comp1.ewbe.omega*i) Failed to evaluate variable. - Variable: comp1.ewbe.k0 - Defined as: ((sqrt((mu0_const*epsilon0_const))*comp1.ewbe.iomega)/i) Failed to evaluate variable. - Variable: comp1.ewbe.k - Defined as: (sqrt((((comp1.ewbe.murzz*comp1.ewbe.epsilonrzz)+((comp1.ewbe.epsilonryy*comp1.ewbe.muryy)+(comp1.ewbe.murxx*comp1.ewbe.epsilonrxx)))/3))*comp1.ewbe.k0) Failed to evaluate expression. - Expression: comp1.ewbe.k Failed to evaluate operator. - Operator: mean - Geometry: 1 - Boundary: 7 20 Failed to evaluate expression. - Expression: mean(comp1.ewbe.k) Failed to evaluate variable. - Variable: comp1.ewbe.k - Geometry: 1 - Boundary: 7 20 Failed to evaluate variable. - Variable: comp1.ewbe.alphaport_1 - Defined as: (if(((real((52881.9632015303+(12287143.604786191*i)))*imag((52881.9632015303+(12287143.604786191*i))))

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.