Note: This discussion is about an older version of the COMSOL Multiphysics® software. The information provided may be out of date.
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.
Representation of a PDE in COMSOL
Posted 1 nov. 2011, 16:02 UTC−4 Modeling Tools & Definitions, Parameters, Variables, & Functions, Studies & Solvers Version 4.1 6 Replies
Please login with a confirmed email address before reporting spam
∂u1/∂t+∇.D.∇(u1+u2)=f
Please login with a confirmed email address before reporting spam
You can look at the weak forms of the equations in a species transport problem, the equations are similar. You will have a good idea of how to develop you're equation.
Please login with a confirmed email address before reporting spam
∂u1/∂t + ∇• Γ = f'
with Γ = D∇u1 and f' = f - ∇• D∇u2 as long as there is not some sort of functional dependency of type u2[u1]. Also, weak form modelling can be easily applied to this equation and may offer some advantages if you are interested in moving domains. Weak form (for Neumann boundary conditions) looks like
∫(ψ ∂u1/∂t) dx - ∫(∇ψ • ∇u1) dx = ∫ψf' dx
Hope this helps,
Alex
Please login with a confirmed email address before reporting spam
Please login with a confirmed email address before reporting spam
Please login with a confirmed email address before reporting spam
∂u1/∂x → diff(u1,x) or simply u1x
which works for all coordinates as well as time. The first expression is the actual formulation, by default COMSOL defines the second one as the first for but only for variables within the model, so it will not work for any self defined functions. Scalar products need to be written as sums of these expressions.
Depending on u2, higher order operators can be a little bit tricky. If you have an analytic form of u2, you should be fine, however, if u2 is a solution of an FEM-simulation you may notice that the operation
∂²u2/∂x² → diff(diff(u2,x),x)
is 0 everywhere which is a consequence from the underlying H1-discretization. If that should be the case, it usually helps to define an additional application mode and set u3 via something like u2x = u3 and employ
∂²u2/∂x² = ∂u3/∂x→ diff(u3,x)
in the original set of equations. However, I am still working with COMSOL 3.5, so it is possible that there have been some changes in the syntax. Just try it, otherwise, you will have to check the doku.
Alex
Please login with a confirmed email address before reporting spam
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.
Suggested Content
- KNOWLEDGE BASE Problems Launching COMSOL Server™ 5.3 with MATLAB®
- BLOG Maximizing Eigenfrequencies with Shape and Topology Optimization
- KNOWLEDGE BASE COMSOL Software Architecture
- FORUM negative representation of Jx
- KNOWLEDGE BASE When changing the license file on the license server, COMSOL Multiphysics loses contact to the license server
