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
11 janv. 2011, 16:25 UTC−5
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
12 janv. 2011, 11:52 UTC−5
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
13 janv. 2011, 01:44 UTC−5
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
24 juil. 2012, 21:02 UTC−4
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.