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.

derivatives in global equations

Please login with a confirmed email address before reporting spam

I'm trying to solve for a variable that depends on the time derivative of an internal variable. When I try and solve it, it gives me the error "system matrix is zero"

The equation is entered in the global equations box as follows, what am I missing? I am using a parametric segregated solver to solve.

Global Equations:

u:
a11

f(u,ut,utt):
2/3*d(epx_smps,t)-a11t

1 Reply Last Post 8 juin 2010, 14:10 UTC−4
COMSOL Moderator

Hello Joel Dugdale

Your Discussion has gone 30 days without a reply. If you still need help with COMSOL and have an on-subscription license, please visit our Support Center for help.

If you do not hold an on-subscription license, you may find an answer in another Discussion or in the Knowledge Base.


Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 8 juin 2010, 14:10 UTC−4

I'm trying to solve for a variable that depends on the time derivative of an internal variable. When I try and solve it, it gives me the error "system matrix is zero"

The equation is entered in the global equations box as follows, what am I missing? I am using a parametric segregated solver to solve.

Global Equations:

u:
a11

f(u,ut,utt):
2/3*d(epx_smps,t)-a11t


I am trying to do a similar problem. In 2D domain I want to add a surface impedance (area counductance S/m^2 and pecific capacitance F/m^2) so that voltages in the domain can drive currents normal to the domain. Thus I want to specify an external current density JN=V*S+C*dV/dt applied in the external current density routine of elelctric currents. How do I put JN in the ODE? I can use the DC term as V*S in the external desnity expression window but I cannot seem to figure out how to introduce dV/dt where V(t), the voltage, is the state variable that COMSOL is solving. I can't write C*dV(t)/dt. It is marked in red in teh expression window although V*S is OK.

So I added ODEs physics and tried to define JN that way but I can't see how to refer to V(t) and the derivative of V(t) in the eqaution specification. I just want JN to be: JN=V*S+C*dV/dt . How do I do that? Is there a simpler routine?
[QUOTE] I'm trying to solve for a variable that depends on the time derivative of an internal variable. When I try and solve it, it gives me the error "system matrix is zero" The equation is entered in the global equations box as follows, what am I missing? I am using a parametric segregated solver to solve. Global Equations: u: a11 f(u,ut,utt): 2/3*d(epx_smps,t)-a11t [/QUOTE] I am trying to do a similar problem. In 2D domain I want to add a surface impedance (area counductance S/m^2 and pecific capacitance F/m^2) so that voltages in the domain can drive currents normal to the domain. Thus I want to specify an external current density JN=V*S+C*dV/dt applied in the external current density routine of elelctric currents. How do I put JN in the ODE? I can use the DC term as V*S in the external desnity expression window but I cannot seem to figure out how to introduce dV/dt where V(t), the voltage, is the state variable that COMSOL is solving. I can't write C*dV(t)/dt. It is marked in red in teh expression window although V*S is OK. So I added ODEs physics and tried to define JN that way but I can't see how to refer to V(t) and the derivative of V(t) in the eqaution specification. I just want JN to be: JN=V*S+C*dV/dt . How do I do that? Is there a simpler routine?

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.