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年11月23日 GMT-5 02:37
Hi
yes and if you change the mesh the oscillations will become denser, just as if you turn on the discretisation and use linear elements it will become triangular: oscillating between two stable conditions ...
Then check the first and the last value (at the two boundaries) and compare two your TWO active boundary conditions
Try a search of on the FORUM, there are several discussion about this earlier (2-3 years ago (with v3.5a at that time)
--
Good luck
Ivar
Hi
yes and if you change the mesh the oscillations will become denser, just as if you turn on the discretisation and use linear elements it will become triangular: oscillating between two stable conditions ...
Then check the first and the last value (at the two boundaries) and compare two your TWO active boundary conditions
Try a search of on the FORUM, there are several discussion about this earlier (2-3 years ago (with v3.5a at that time)
--
Good luck
Ivar
Magnus Ringh
COMSOL Employee
Please login with a confirmed email address before reporting spam
Posted:
1 decade ago
2011年11月23日 GMT-5 07:42
Hi,
When using the general form PDE interface, the model is inconsistent with the default boundary condition at x = 10, because you have a nonzero flux n*Gamma at the boundary but the default boundary condition specifies a zero flux. This is the reason why the solution oscillates. You can use one of the following approaches to solve this differential equation using COMSOL:
1. Add a Flux/Source node to the general form PDE interface to specify the boundary flux at the end boundary.
2. Specify the equation with a coefficient form PDE interface using the convection coefficient beta to specify the equation. Then the flux as defined by Gamma becomes zero, and the default boundary condition becomes fulfilled as it is essentially 0 = 0.
3. Use a Global ODEs and DAEs interface to solve the equation as an ODE d(theta)/dt = constant using the time t as the independent variable.
Best regards,
Magnus Ringh, COMSOL
Hi,
When using the general form PDE interface, the model is inconsistent with the default boundary condition at x = 10, because you have a nonzero flux n*Gamma at the boundary but the default boundary condition specifies a zero flux. This is the reason why the solution oscillates. You can use one of the following approaches to solve this differential equation using COMSOL:
1. Add a Flux/Source node to the general form PDE interface to specify the boundary flux at the end boundary.
2. Specify the equation with a coefficient form PDE interface using the convection coefficient beta to specify the equation. Then the flux as defined by Gamma becomes zero, and the default boundary condition becomes fulfilled as it is essentially 0 = 0.
3. Use a Global ODEs and DAEs interface to solve the equation as an ODE d(theta)/dt = constant using the time t as the independent variable.
Best regards,
Magnus Ringh, COMSOL
Please login with a confirmed email address before reporting spam
Posted:
1 decade ago
2011年12月7日 GMT-5 13:07
Thank you both for your comments. It helped immensely.
Padmini
Thank you both for your comments. It helped immensely.
Padmini