Solving Coupled Flow and Diffusion in COMSOL: Error Analysis

In summary, Tom's 3D fem for a solid cylinder is not coming as it should be. The stiffness matrix is showing badly scaled and there are 2 more lines in the outer side. Somebody can help him with assembling the local matrices to global.
  • #1
tommyers
58
0
Hi,

I am not sure if this is the right place to post a COMSOL question. If not I apologise, could you point me to the right place.

I have a 3D geometry in COMSOL shape like a "T" where I want to model flow using navier stokes and a chemical diffusion using convection and diffusion. Both work independantly. However, when I try to solve them both together, because they are coupled. I get this following message:

Error:
Time 0:
Matrix is singular.
Out_of_memory_LU_factorization
Last time step is not converged.

Now I have read what might cause this, suggestions include my mesh type, I have varied this but without success. The other was sharp corners, my geometry has sharp corners, and suggestions have been to fillet the corners, however, I can't figure out how to fillet 3D corners.

Moreover, what could the problem be?

Regards,
Tom
 
Physics news on Phys.org
  • #2
These can be tough problems to locate and you've probably tried the obvious solutions ... the coupling, and at the very beginning of the analysis at t = 0 ... how have you executed this, is there "something" which can hit infinity at the beginning of the analysis, and should be smoothed out one way or another? And is there something nonlinear (that'd open up some options)?

Often analyzes need to be started in a tad "smoothed" manner to get them running proper, since the initial state isn't numerically really "viable". It may be the corners, but smoothing them out shouldn't always be a necessity (and it can require some effort, and may not really be the underlying source of the problem). Often activating parts of the physics at t>0 is a simple solution and/or adding functions which are "smooth, continuous and stable" + dissipate away as t goes further to define initial and boundary conditions or otherwise unstable parts of the analysis help (of well, something which use a lot when don't want to modify the underlying geometry when working with new implementations).
 
  • #3
3D fem help in matlab

Hi, i have done 3d fem for solid cylinder. the stiffness matrix is not coming as it should be. there should be 5 lines in sparse matrix. but it is coming 2 more lines in outer side. and the sparse matrix is near singular or showing badly scaled . anybody can help. anybody can help for assembling the local matrices to global.
 

What is COMSOL and how is it used in solving coupled flow and diffusion problems?

COMSOL is a software package that allows for the simulation and analysis of physical systems using the finite element method. It is commonly used to solve coupled flow and diffusion problems by modeling the behavior of fluids and their interactions with diffusing substances.

What is meant by "coupled flow and diffusion" and why is it important to consider both phenomena together?

Coupled flow and diffusion refers to the simultaneous movement of fluids and the diffusion of substances within those fluids. It is important to consider both phenomena together as they can have a significant impact on each other's behavior, and neglecting one can lead to inaccurate results.

What is error analysis and why is it important in solving coupled flow and diffusion problems in COMSOL?

Error analysis involves examining the accuracy and precision of the results obtained from a simulation. It is important in solving coupled flow and diffusion problems in COMSOL to ensure that the results are reliable and can be used to make informed decisions about the system being studied.

What are some common sources of error in solving coupled flow and diffusion problems in COMSOL?

Some common sources of error in COMSOL simulations include incorrect boundary conditions, meshing errors, and numerical instability. It is important to carefully check all input parameters and settings to minimize these errors.

How can error analysis be performed in COMSOL for coupled flow and diffusion problems?

Error analysis can be performed in COMSOL by comparing the results of a simulation with experimental data or with results from other simulations using different parameters. Additionally, sensitivity analysis can be used to determine the effect of changing certain parameters on the overall results.

Similar threads

  • MATLAB, Maple, Mathematica, LaTeX
Replies
1
Views
3K
  • Mechanical Engineering
Replies
1
Views
674
  • MATLAB, Maple, Mathematica, LaTeX
Replies
1
Views
2K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
2
Views
4K
  • Mechanical Engineering
Replies
1
Views
927
  • Classical Physics
Replies
1
Views
1K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
1
Views
3K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
1
Views
8K
  • Introductory Physics Homework Help
Replies
15
Views
2K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
3
Views
1K
Back
Top