Note: This discussion is about an older version of the COMSOL Multiphysics® software. The information provided may be out of date.
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.
Is this ODE defined correctly?
Posted 25 giu 2012, 05:17 GMT-4 Low-Frequency Electromagnetics, Materials, Modeling Tools & Definitions, Parameters, Variables, & Functions, Studies & Solvers Version 4.2a 2 Replies
Please login with a confirmed email address before reporting spam
Hello,
I have to time-integrate an expression and use it in my model to solve a PDE simultaneously. COMSOL does not give me an error and the result doesn't look that wrong. But I am still not sure if it's 100% correct.
Maybe someone could take a look at my definitions. The Scalar "A" is time dependent and calculated via a surface integration of space- and time-depenedent magnetic field components. The equations are simplified for keeping the track of the field components.
In Variables I defined:
Br=rmm.Bx*cos(alpha)
Ba=-rmm.Bx*sin(alpha)
alpha=atan2(y,x)
A = (intop12(rho/mue0*Br*Ba))
rho=sqrt(x^2+y^2)
ds=A
s=(1-s)*f/p
As global ODE I defined:
Variable:s
st-ds
s(t0)=1
Thanks in advance
I have to time-integrate an expression and use it in my model to solve a PDE simultaneously. COMSOL does not give me an error and the result doesn't look that wrong. But I am still not sure if it's 100% correct.
Maybe someone could take a look at my definitions. The Scalar "A" is time dependent and calculated via a surface integration of space- and time-depenedent magnetic field components. The equations are simplified for keeping the track of the field components.
In Variables I defined:
Br=rmm.Bx*cos(alpha)
Ba=-rmm.Bx*sin(alpha)
alpha=atan2(y,x)
A = (intop12(rho/mue0*Br*Ba))
rho=sqrt(x^2+y^2)
ds=A
s=(1-s)*f/p
As global ODE I defined:
Variable:s
st-ds
s(t0)=1
Thanks in advance
2 Replies Last Post 25 giu 2012, 11:20 GMT-4