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.
time dependent study, external current density in mf model.
Posted 2011/05/25 7:31 GMT-4 Low-Frequency Electromagnetics Version 4.1, Version 4.2 9 Replies
Please login with a confirmed email address before reporting spam
I am using COMSOL version 4.2, module AC/DC, Magnetic Fields (mf) model, 2D axisymmetric wizard and time dependent study.
I have created in "Global Definitions" a function of type "Sawtooth" named by "F1saw".
As " External Current Density" I want to use "Jc*F1saw(t)" but the program says that it is "unexpected unit of input", where "Jc" is given as a parameter and is units are "A/m^2".
I really don't know what I am doing wrongly.
Could you help me?
Thanks in advance.
Best regards,
Isa
Please login with a confirmed email address before reporting spam
did you assign a unit to your Sawtooth function? It should be unitless for your application.
Cheers
Edgar
Please login with a confirmed email address before reporting spam
thank-you Edgar.
No, I define it simply. But when I plot it, as title appears "F1Saw(t)", so it seems that by default it takes the variable time, doesn't it?
How should I do it?
Thanks again in advance.
Best regards,
Isa
Please login with a confirmed email address before reporting spam
Attachments:
Please login with a confirmed email address before reporting spam
Thank-you very much for your help!
I have opened your file in both, comsol 4.1 and 4.2, and yes, you are right, it allows me to introduce the external current density as "Jc*tria1(t)" but you can see that it put itself in orange colour (in both versions), which points out that it is "unexpectd unit of input"... It is like a warning, not an error because later the program runs.
I think it is because tria1(t) has units of "seconds", do you know if we can do it unitless?
Thanks in advance!
Best regards,
Isa
Please login with a confirmed email address before reporting spam
Please login with a confirmed email address before reporting spam
Again, thank-you!
Best regards,
Isa
Please login with a confirmed email address before reporting spam
you might consider to define a constant with an appropriate unit, assign the value 1 and multiply with your function to remove the unit issue.
Cheers Edgar
Please login with a confirmed email address before reporting spam
the correct way calling a time function *without orange* marks is:
sawtooth(t[1/s])[A/m^2]
The [1/s] removes the unit [s] and creates a unitless input for the function call.
The [A/m^2] adds the correct unit required for the entry field.
Sven
Please login with a confirmed email address before reporting spam
I have tried your suggestion and, obviously (it makes sense), it has worked!
Thank-you very much!
Best regards,
Isa
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.
Suggested Content
- FORUM Time dependent study, external current density.
- BLOG How Do I Use Gauge Fixing in COMSOL Multiphysics®?
- KNOWLEDGE BASE The Magnetic and Electric Fields Interface with Electrical Circuit Gives an Unexpected Error for Transient Studies
- KNOWLEDGE BASE Improving convergence in nonlinear time dependent models
- KNOWLEDGE BASE How does COMSOL Multiphysics handle complex-valued numbers and problems in the frequency domain?
