CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

Steady Advection-diffusion equation, with scalar velocity field, openfoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 17, 2019, 05:10
Default Steady Advection-diffusion equation, with scalar velocity field, openfoam
  #1
New Member
 
Andrea Trotta
Join Date: Aug 2019
Posts: 14
Rep Power: 7
andrea5 is on a distinguished road
Hello,

I follow this forum basically everyday, and usually I am able to find all the answers that I am lookig for, but in this case I tried, but I dind't find anything, so first of all sorry if the question has already been made.


My problem is really easy, I am dealing with a steady scalar advection-diffusion equation, but in this case the velocity field is not a vector field, but is just a scalar, let's say equal to 5.

I have noticed that the ScalarTransportFoam and in general when this equation is implemented, it's common to solve it as follows:

solve
(
+ fvm::div(phi, T) // Convective term
- fvm::laplacian(DT, T) // Diffusive term
);


my main problem consists in the fact that the term "phi" cannot be evaluated, since I don't have a vector field, that's why, when I implement it, I don't exactly know how to express all the terms, I have to implement the following statement:


k*grad(T) - DT*(laplacian(T)

where both K and DT are just constant real number.


If I try something like:


(
fvc::grad(T)*k
- fvm::laplacian(c,T)
);



he gives me problems, because of course it's inconsistent.


both k and DT are defined as just dimensionedScalar in the transportProperties dict.



thanks to everyone for your time and help!


Andrea.
andrea5 is offline   Reply With Quote

Reply

Tags
advection, scalar


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
problem during mpi in server: expected Scalar, found on line 0 the word 'nan' muth OpenFOAM Running, Solving & CFD 3 August 27, 2018 05:18
Can not achieve statistically steady flow in Openfoam jiaodanuma OpenFOAM 0 August 16, 2016 07:49
Diverging solution in transonicMRFDyMFoam tsalter OpenFOAM Running, Solving & CFD 30 July 7, 2014 07:20
[OpenFOAM] velocity Scalar field for paraview contour Jens123 ParaView 0 November 16, 2013 08:15
Wave Action Equation Solver for OpenFOAM chyczewski OpenFOAM Programming & Development 7 September 4, 2013 12:06


All times are GMT -4. The time now is 07:49.