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

Retrieve Advection-Diffusion Components Individually

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 27, 2022, 12:42
Default Retrieve Advection-Diffusion Components Individually
  #1
New Member
 
Luiz Oliveira
Join Date: Aug 2018
Location: Napoli, Italy
Posts: 24
Rep Power: 7
Luiz is on a distinguished road
Hello,

I am trying to calculate both the advection and the diffusion fluxes separately. I have the scalar field calculated for all times of my simulation, although, it appears that the equation is calculated all at once (advective and diffusive contributions) what makes it impossible to retrieve the individual contributions (assuming this file https://www.openfoam.com/documentati...8C_source.html), is this correct? Would it be necessary to write a solver for the transport equation and calculate each term individually?

In summary, I would like to retrieve the following components, store it in a 2D vector and write it in every timestep.
Code:
ADE.components(vector::X) = fvm::div(phi, T) // Advection

ADE.components(vector::Y) = fvm::laplacian(DT, T) // Diffusion
__________________
Luiz Oliveira
PhD. Student in Environmental Fluid Dynamics
University of Napoli: Federico II
Luiz is offline   Reply With Quote

Reply


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
Why numerical diffusion is related to the advection term Houthuys Main CFD Forum 6 January 28, 2017 22:01
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 06:20
Use advection step and Dispersion step to solve advection diffusion equation cooljd Main CFD Forum 0 October 15, 2012 15:44
Model crashes while solving advection diffusion equation cooljd Main CFD Forum 3 August 23, 2012 10:40
How to stop diffusion and advection in a zone for selected species. hda FLUENT 0 March 18, 2012 23:59


All times are GMT -4. The time now is 08:40.