Solving non-conservative equations

  • Thread starter lostidentity
  • Start date
In summary: This could indicate a problem in the discretization of the equations, but it is still valid to compare the results from the two equations. In summary, when comparing the results of solving a simple diffusion problem using numerical simulation and analytical methods, it is acceptable to compare the solutions from equations (1) and (2). Despite the difference in the equations, the numerical solution should still be consistent with the analytical solution when the convection term is set to zero. Any discrepancies between the two solutions may indicate a problem with the discretization, but it is still valid to compare the results.
  • #1
lostidentity
18
0
I'm trying to analytically solve a simple diffusion problem (written in non-conservative form) with that of numerical simulation that essentially solves the equations in conservative form.

The transport equation which I'm solving numerically is

[tex]\frac{\partial\rho{c}}{\partial{t}} + \nabla\cdot\rho\boldsymbol{u}c = \nabla\cdot(D\nabla{c})[/tex] ---(1)

where c is the scalar variable I'm interested in looking at, D is the diffusivity (a constant), [tex]\rho[/tex] is the density and [tex]\boldsymbol{u}[/tex] is the velocity vector. Since it's a diffusion problem I set the velocities to zero, i.e. the second (convection) term on the LHS of the above equation becomes zero. So essentially I'm solving the equation

[tex]\frac{\partial\rho{c}}{\partial{t}} = \nabla\cdot(D\nabla{c})[/tex]

When I solve the above equation analytically assume that density is constant (which is also a constant in my numerical calculations), and then I obtain the following equation

[tex]\frac{\partial{c}}{\partial{t}} = \frac{D}{\rho}\nabla^2{c}[/tex] --------------(2)

which is just the diffusion equation. The problem is my solutions are a bit different (i.e. numerical and analytic solutions. This might well be a problem in my discretisation etc. But first of all I just wanted to see if what I'm doing make sense, i.e comparing the numerical results from equation (1) with the analytical result of equation (2). Note that in solving equation (1) in my code even though I set velocities to zero, I still solve the momentum equations.
 
Physics news on Phys.org
  • #2
So is it okay to compare the results from equation (1) with those of equation (2)?Yes, it is OK to compare the results from equation (1) with those of equation (2). The difference between the two equations is that equation (1) takes into account convection, which is being set to zero in equation (2). However, the numerical solution of equation (1) should be consistent with the analytical solution of equation (2) when the convection term is set to zero.
 

What are non-conservative equations?

Non-conservative equations are mathematical representations of physical systems that do not obey the principle of conservation of energy. This means that the total energy of the system may not remain constant over time, and energy can be transferred in or out of the system.

Why is it important to solve non-conservative equations?

Solving non-conservative equations is important because it allows us to accurately predict the behavior of physical systems that do not obey the principle of energy conservation. This is crucial for understanding and analyzing complex systems in physics, engineering, and other fields.

What are some common methods for solving non-conservative equations?

There are several methods for solving non-conservative equations, including numerical methods such as finite difference or finite element methods, as well as analytical methods like separation of variables and Laplace transforms. The choice of method depends on the specific equation and the desired level of accuracy.

What are some challenges in solving non-conservative equations?

Solving non-conservative equations can be challenging due to the complexity of the equations and the need for specialized mathematical techniques. Additionally, the solutions to these equations may not have a physical interpretation, making it difficult to validate the results.

How can the solutions to non-conservative equations be applied in real-world scenarios?

The solutions to non-conservative equations can be applied in a variety of real-world scenarios, such as predicting the behavior of fluid flow in pipes, analyzing the stability of structures under varying loads, and understanding the dynamics of chemical reactions. These solutions can help engineers and scientists make informed decisions and design more efficient and effective systems.

Similar threads

Replies
7
Views
758
Replies
10
Views
684
  • Classical Physics
Replies
6
Views
314
Replies
8
Views
744
Replies
2
Views
797
  • Classical Physics
Replies
4
Views
724
Replies
6
Views
317
  • Classical Physics
Replies
4
Views
928
  • Classical Physics
Replies
9
Views
995
  • Classical Physics
Replies
6
Views
2K
Back
Top