|
[Sponsors] |
June 25, 2013, 08:03 |
Doubt in scalarTransportFoam...
|
#1 |
New Member
Abhiroop
Join Date: Jun 2013
Posts: 26
Rep Power: 12 |
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; } |
|
June 25, 2013, 11:59 |
|
#2 |
Member
Join Date: Sep 2012
Posts: 51
Rep Power: 13 |
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. |
|
June 25, 2013, 17:16 |
|
#3 |
New Member
Abhiroop
Join Date: Jun 2013
Posts: 26
Rep Power: 12 |
ok... thnx Hiroshiman
|
|
August 13, 2013, 06:40 |
|
#4 |
New Member
Bayard Morales
Join Date: Aug 2009
Posts: 24
Rep Power: 16 |
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 |
|
October 8, 2013, 06:19 |
|
#5 |
New Member
Bayard Morales
Join Date: Aug 2009
Posts: 24
Rep Power: 16 |
[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. } } } |
|
October 8, 2013, 08:41 |
|
#6 |
Member
Join Date: Sep 2012
Posts: 51
Rep Power: 13 |
Hi,
thank you for sharing, that can be useful. Regards. |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
ScalarTransportFoam for RTD calculations | santoo_cfd | OpenFOAM Running, Solving & CFD | 39 | July 12, 2021 02:15 |
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 17:05 |
Fluent Basic Doubt | Fluent learner | FLUENT | 16 | May 30, 2008 05:09 |