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

Flux inside a pipe of a fluid with a solute

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 17, 2021, 18:05
Default Flux inside a pipe of a fluid with a solute
  #1
New Member
 
José Manuel Olmos Martínez
Join Date: Mar 2021
Posts: 8
Rep Power: 5
Jose Manuel Olmos is on a distinguished road
Hello everyone,


I'm new with OpenFOAM and I would like to know if it is possible to simulate the flux inside a three-dimensional pipe of a fluid containing a solute. The fluid is introduced at the inlet of the pipe at a constant velocity and with a constant concentration of a solute. I want to simulate the distribution of velocities of the fluid and concentrations of the solute along the inside of the pipe.


I used a geometry file (in stl format) of the pipe to create the internal mesh by using the "snappyHexMesh" utility.


https://ibb.co/FmSRh5b


However, I have problems for running the simulation. The diffusion of the solute only takes place from the inlet of the pipe instead of at any point of the pipe (I mean, in sincronization with the flux of the fluid). The following images refer to the distribution of velocities and concentrations at the same time of simulation


https://ibb.co/bQLCf2v
https://ibb.co/7XSj25K


I modified the icoFoam solver to include the effect of the diffusion of the solute, according to the instructions provided in the web "https://openfoamwiki.net/index.php/How_to_add_transport_of_N_solutes_to_icoFoam". I attach the files for this new solver.


Here are the boundary conditions for the concentration of the solute:
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 8
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
location "0";
object C_azoxystrobin;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions [0 -3 0 0 1 0 0];

internalField uniform 0;

boundaryField
{
CAD_inlet
{
type fixedValue;
value uniform 0.01;
}
CAD_outlet
{
type zeroGradient;
}
CAD_wall
{
type zeroGradient;
}
}


// ************************************************** *********************** //


I hope my explanations about what I want to do are clear. I would be very grateful if anyone could tell me if I'm taking any mistake (or maybe the case I want to simulate is not possible with OpenFOAM)


Thank you in advance,
Jose Manuel
Attached Files
File Type: c transportIcoFoamN.C (4.7 KB, 2 views)
File Type: c solute.C (2.4 KB, 2 views)
Jose Manuel Olmos 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
Question about adaptive timestepping Guille1811 CFX 25 November 12, 2017 17:38
Wrong flow in ratating domain problem Sanyo CFX 17 August 15, 2015 06:20
Waterwheel shaped turbine inside a pipe simulation problem mshahed91 CFX 3 January 10, 2015 11:19
Double Walled Pipe Boundary dahvqaz FLUENT 2 December 5, 2012 10:14
Terrible Mistake In Fluid Dynamics History Abhi Main CFD Forum 12 July 8, 2002 09:11


All times are GMT -4. The time now is 21:58.