Advice on solving convection-diffusion equation
Posted: Tue Aug 20, 2024 11:51 am
Hi all,
I need to solve the transport of a scalar in blood flow and determine its concentration in different regions over time. I have a few ideas on how to approach this problem, which I've outlined below, but I would appreciate some external input from the code maintainers on what might be the best approach. To obtain the velocity field, I will use the solution provided by svSolver. I assume this is a diluted problem, so there is no feedback from the scalar T to the fluid.
The transport equation I am looking to solve is the following: (I think mathjax is not supported)
[math] \frac{\partial T}{\partial t} + \nabla \cdot (\mathbf{u} T) - \nabla \cdot (D_T \nabla T) = 0 [\math]
This is the simple convection-diffusion equation without sources. The methods I am considering to solve this problem are:
Thanks a lot!
Best,
Ignacio
I need to solve the transport of a scalar in blood flow and determine its concentration in different regions over time. I have a few ideas on how to approach this problem, which I've outlined below, but I would appreciate some external input from the code maintainers on what might be the best approach. To obtain the velocity field, I will use the solution provided by svSolver. I assume this is a diluted problem, so there is no feedback from the scalar T to the fluid.
The transport equation I am looking to solve is the following: (I think mathjax is not supported)
[math] \frac{\partial T}{\partial t} + \nabla \cdot (\mathbf{u} T) - \nabla \cdot (D_T \nabla T) = 0 [\math]
This is the simple convection-diffusion equation without sources. The methods I am considering to solve this problem are:
- Convert the VTU solution to OpenFOAM-readable files and use scalarTransportFoam: This would involve solving the problem at each time step using OpenFOAM. However, it will require some work on setting the boundary conditions appropriately.
- Discretize the equation using a finite element approach: I could implement the solution using VTK in C++ or Python. I believe there are tutorials and papers available on this formulation and how to implement it for unstructured meshes.
- Implement the solution for the transport equation directly in svSolver: This option would require some guidance from the developers on how to proceed and which files to focus on. Additionally, I have no experience with Fortran programming, so I would need to learn the language. Despite this, I believe it would be the most beneficial option for the community in the long run.
Thanks a lot!
Best,
Ignacio