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

Doubt in scalarTransportFoam...

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree2Likes
  • 1 Post By Hiroshiman
  • 1 Post By bbmorales

Reply
 
LinkBack Thread Tools Display Modes
Old   June 25, 2013, 07:03
Default Doubt in scalarTransportFoam...
  #1
New Member
 
Abhiroop
Join Date: Jun 2013
Posts: 26
Rep Power: 4
AB08 is on a distinguished road
Hi I m new to OpenFoam nd need sm help........
What is the function of fvOptions in the following??



#include "fvCFD.H"
#include "fvIOoptionList.H"
#include "simpleControl.H"

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

int main(int argc, char *argv[])
{
#include "setRootCase.H"
#include "createTime.H"
#include "createMesh.H"
#include "createFields.H"
#include "createFvOptions.H"

simpleControl simple(mesh);

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

Info<< "\nCalculating scalar transport\n" << endl;

#include "CourantNo.H"

while (simple.loop())
{
Info<< "Time = " << runTime.timeName() << nl << endl;

while (simple.correctNonOrthogonal())
{
solve
(
fvm::ddt(T)
+ fvm::div(phi, T)
- fvm::laplacian(DT, T)
==
fvOptions(T)
);
}

runTime.write();
}

Info<< "End\n" << endl;

return 0;
}
AB08 is offline   Reply With Quote

Old   June 25, 2013, 10:59
Default
  #2
Member
 
Join Date: Sep 2012
Posts: 48
Rep Power: 4
Hiroshiman is on a distinguished road
Hi,
fvOptions is a new feature of OF2.2.0 :
http://www.openfoam.org/version2.2.0/fvOptions.php

Here it contains the source term of the scalar transport equation.
vbnhfylbh likes this.
Hiroshiman is offline   Reply With Quote

Old   June 25, 2013, 16:16
Post
  #3
New Member
 
Abhiroop
Join Date: Jun 2013
Posts: 26
Rep Power: 4
AB08 is on a distinguished road
ok... thnx Hiroshiman
AB08 is offline   Reply With Quote

Old   August 13, 2013, 05:40
Default
  #4
New Member
 
Bayard Morales
Join Date: Aug 2009
Posts: 24
Rep Power: 7
bbmorales is on a distinguished road
Hello, colleagues

As of OF 2.2.0, the source term of scalarTransportFoam can be described in the file fvControl, due the code lines

solve
(
fvm::ddt(T)
+ fvm::div(phi, T)
- fvm::laplacian(DT, T)
==
fvOptions(T)
);

My question is:

Using fvOptions, how to build a point source term?

I wasn't able to find documentation or examples of it.
I don't even know which optin of fvOptions to use.

Where can I find do documentation on this?

Many thanks
bbmorales is offline   Reply With Quote

Old   October 8, 2013, 05:19
Default
  #5
New Member
 
Bayard Morales
Join Date: Aug 2009
Posts: 24
Rep Power: 7
bbmorales is on a distinguished road
[SOLUTION]

https://github.com/OpenFOAM/OpenFOAM...stem/fvOptions - you can see some examples here

to define a source point, add these lines in the fvOption file.

Code:
scalarTracer                          //this is only the name of the object, can be anything
{
   type                      scalarSemiImplicitSource;                              
   active                    true;     //turns on and off the source
   timeStart                 0;        //starting time
   duration                  1;        //duration in seconds
   selectionMode             points;   //it could be also a cellZone
   points                             //list of coordinates of the source terms
   (
      (0.1 0 0)
   );

   scalarSemiImplicitSourceCoeffs
   {
      volumeMode            absolute;   //     - absolute: values are given as \<quantity\> specific: values are given as \<quantity\>/m3
      injectionRateSuSp                // just a name
      {
         T                   (0.01 0);   // T - scalar variable. First value = S_u (explicit source term); Second value = S_p.
      }
    }
}
Cheers
cfdonline2mohsen likes this.
bbmorales is offline   Reply With Quote

Old   October 8, 2013, 07:41
Default
  #6
Member
 
Join Date: Sep 2012
Posts: 48
Rep Power: 4
Hiroshiman is on a distinguished road
Hi,
thank you for sharing, that can be useful.

Regards.
Hiroshiman is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
ScalarTransportFoam for RTD calculations santoo_cfd OpenFOAM Running, Solving & CFD 34 May 22, 2014 10:20
scalarTransportFoam erased my original data and has very slowly transport results foamWang OpenFOAM Running, Solving & CFD 3 October 31, 2013 03:51
Problem with scalarTransportFoam illistrated using pitzDaily tutorial mlawson OpenFOAM 2 January 18, 2011 14:39
flux seems not conserved in my modified scalarTransportFoam danielr OpenFOAM Running, Solving & CFD 3 October 5, 2009 16:05
Fluent Basic Doubt Fluent learner FLUENT 16 May 30, 2008 04:09


All times are GMT -4. The time now is 18:41.