Henrik Sönnerlind
COMSOL Employee
Please login with a confirmed email address before reporting spam
Posted:
2 years ago
2022年6月9日 GMT-4 10:45
Hi Runzi,
This should work. You have discovered a bug that was corrected in version 6.0, so updating may be a good idea. As a workaround, do the following:
- Enable Equation View
- Go to the Equation View node under the Prescribed Velocity node
- In the Weak Expression section, replace the current expression with :
-(solid.vel1.vx-root.comp1.solid.vel1.u0xTIME)*test(solid.vel1.u0x)-(solid.vel1.vy-root.comp1.solid.vel1.u0yTIME)*test(solid.vel1.u0y)-(solid.vel1.vz-root.comp1.solid.vel1.u0zTIME)*test(solid.vel1.u0z)
As an alternative, if the displacement caused by the prescribed velocity is trivial, you can use a Prescribed Displacement node instead. You just need to integrate the velocity into a displacement by pen and paper.
(You can see that it is a variable with tag 'vel1' that is causing the problem, which leads to my guess that a Prescribed Velocity node in your model that is the source of the error)
-------------------
Henrik Sönnerlind
COMSOL
Hi Runzi,
This should work. You have discovered a bug that was corrected in version 6.0, so updating may be a good idea. As a workaround, do the following:
1. Enable Equation View
2. Go to the *Equation View* node under the *Prescribed Velocity* node
3. In the *Weak Expression* section, replace the current expression with :
-(solid.vel1.vx-root.comp1.solid.vel1.u0xTIME)\*test(solid.vel1.u0x)-(solid.vel1.vy-root.comp1.solid.vel1.u0yTIME)\*test(solid.vel1.u0y)-(solid.vel1.vz-root.comp1.solid.vel1.u0zTIME)\*test(solid.vel1.u0z)
As an alternative, if the displacement caused by the prescribed velocity is trivial, you can use a *Prescribed Displacement* node instead. You just need to integrate the velocity into a displacement by pen and paper.
(You can see that it is a variable with tag 'vel1' that is causing the problem, which leads to my guess that a *Prescribed Velocity* node in your model that is the source of the error)
Please login with a confirmed email address before reporting spam
Posted:
2 years ago
2022年6月9日 GMT-4 12:54
I see. Thank you for your reply!
I see. Thank you for your reply!