Ivar KJELBERG
COMSOL Multiphysics(r) fan, retired, former "Senior Expert" at CSEM SA (CH)
Please login with a confirmed email address before reporting spam
Posted:
1 decade ago
2011年1月11日 GMT-5 16:25
Hi
have you tried
C_in*(435>=x)*(x<=690)*(.5*cos((1/90)*t)+.5))
I believe this is what you are expressing, probably it works in Matlab too
by the way I changed the *(435<=x)* to *(435>=x)* but I might have missed something too
--
Good luck
Ivar
Hi
have you tried
C_in*(435>=x)*(x
Please login with a confirmed email address before reporting spam
Posted:
1 decade ago
2011年1月12日 GMT-5 11:52
Hi Ivar,
When I write the boundary conditions in this manner, (without the ampersands) it hangs and doesn't solve the system more then one time step. I have seen documentation for both ways of writing the conditional statement. Which is the most commonly used way? Also is it legal to write the time condition in a function like this?
Thank you.
Hi Ivar,
When I write the boundary conditions in this manner, (without the ampersands) it hangs and doesn't solve the system more then one time step. I have seen documentation for both ways of writing the conditional statement. Which is the most commonly used way? Also is it legal to write the time condition in a function like this?
Thank you.
Ivar KJELBERG
COMSOL Multiphysics(r) fan, retired, former "Senior Expert" at CSEM SA (CH)
Please login with a confirmed email address before reporting spam
Posted:
1 decade ago
2011年1月13日 GMT-5 01:44
Hi
I use it , so I believe its "legal". The difficulty is the step, you should smoothen them. Comsol asks for at least the first derivative of all BC's to converge correctly, and the bolean make Dirac or hard steps, that is not very good ;) Smoothen the steps with a Heaviside
--
Good luck
Ivar
Hi
I use it , so I believe its "legal". The difficulty is the step, you should smoothen them. Comsol asks for at least the first derivative of all BC's to converge correctly, and the bolean make Dirac or hard steps, that is not very good ;) Smoothen the steps with a Heaviside
--
Good luck
Ivar
Please login with a confirmed email address before reporting spam
Posted:
1 decade ago
2012年7月24日 GMT-4 21:02
Comsol asks for at least the first derivative of all BC's to converge correctly, and the bolean make Dirac or hard steps, that is not very good ;) Smoothen the steps with a Heaviside
--
Good luck
Ivar
This info is really interesting. Thanks Ivar.
[QUOTE]
Comsol asks for at least the first derivative of all BC's to converge correctly, and the bolean make Dirac or hard steps, that is not very good ;) Smoothen the steps with a Heaviside
--
Good luck
Ivar
[/QUOTE]
This info is really interesting. Thanks Ivar.