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.

weak form

Please login with a confirmed email address before reporting spam

whether the dweak form in comsol has been canceled, only the weak form can be set


2 Replies Last Post Nov 16, 2019, 1:28 p.m. EST

Please login with a confirmed email address before reporting spam

Posted: 4 years ago Nov 15, 2019, 7:34 a.m. EST

What is the dweak form?

-------------------
ZHANG, Pu
School of Physics,
Huazhong University of Science and Technology
What is the dweak form?

Eric Favre COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 4 years ago Nov 16, 2019, 1:28 p.m. EST
Updated: 4 years ago Nov 16, 2019, 1:28 p.m. EST

Hello, You are right, the "dweak" term was in the past used for entering the time derivative of the unknown for time-dependent problem (there is no mathematical "dweak form", only a "weak form").
The time derivative expression can actually be entered in the "weak" term : COMSOL will detect the time derivative automatically.
So for instance a time-dependent Poisson equation with source = 1 on a 1D segment along direction x reads :
weak = ux * test(ux) - 1 * test(u) - d(u,t) * test(u)
d(u,t) is the time derivative.
you need to add boundary conditions of course.
"weak" means : integration over the selected domain (or the boundary, depending where you write the equation).
The order of the terms does not matter.
So whatever was written in the "dweak" term in old versions, you can enter it in the "weak" term without any problem.
You can find more advanced details in the documentation.

Eric Favre COMSOL France

-------------------
Eric Favre
COMSOL France
Hello, You are right, the "dweak" term was in the past used for entering the time derivative of the unknown for time-dependent problem (there is no mathematical "dweak form", only a "weak form"). The time derivative expression can actually be entered in the "weak" term : COMSOL will detect the time derivative automatically. So for instance a time-dependent Poisson equation with source = 1 on a 1D segment along direction x reads : weak = ux * test(ux) - 1 * test(u) - d(u,t) * test(u) d(u,t) is the time derivative. you need to add boundary conditions of course. "weak" means : integration over the selected domain (or the boundary, depending where you write the equation). The order of the terms does not matter. So whatever was written in the "dweak" term in old versions, you can enter it in the "weak" term without any problem. You can find more advanced details in the documentation. Eric Favre COMSOL France

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.