|
[Sponsors] |
November 13, 2010, 06:09 |
|
#21 |
Member
Antonio Liggieri
Join Date: Aug 2010
Posts: 76
Rep Power: 15 |
Hello Santhosh,
thanx a lot for your quick reply! The flow field I provide for applying scalarTransportFoam on is the result of a thermal simulation where the variable T ist already used for the Temperature. Even if scalarTransportFoam only needes the p and U filed and in that simulation the variable T can be regarded as a free one, later, in the postprocessing, I'd like to distinct the T for temperature and T for smoke. Obviously it is possible to rename the scalarFiled T generated by scalarTransportFoam - in my case into "smoke". But it would be far more elegant to rename the variable directly within the solver. Do you think it is a big deal to do that? Best regards Tony |
|
November 13, 2010, 12:36 |
|
#22 |
Member
santhosh
Join Date: Apr 2009
Location: India
Posts: 70
Rep Power: 17 |
It is very simple...To have more Idea go through following link...
http://openfoamwiki.net/index.php/Ho...ure_to_icoFoam If you dont have patience, just copy scalarTransportFoam to your directory and rename variable T to whatever you want, change the name of solver in Make directory of your choice and create a new solver. I suggest you to spend little more time in learning basic stuff in OpenFOAM, you will find your life easier in your further work. Santhosh. |
|
November 15, 2010, 10:44 |
|
#23 |
Member
Antonio Liggieri
Join Date: Aug 2010
Posts: 76
Rep Power: 15 |
Hello Santhosh,
changing the variable Name within scalarTransportFoam worked without any problems. Now I am following your suggestion, to implement turbulence in my new, from scalarTransportFoam derived solver. I'm trying to do so following the posts of the present thread. But I'm struggling with compiling. This is how the changes in my .C file from the Make directory looks like (changed strings in red): for (int nonOrth=0; nonOrth<=nNonOrthCorr; nonOrth++) { solve ( fvm::ddt(Smoke) + fvm::div(phi, Smoke) - fvm::laplacian(turbulence->mut() + DSmoke, Smoke) ); I didn't change anything else - most probably I have to, but I don't know where and what. The error message I receive is the following: smokeTurbulentTransportFoam.C:65: error: ‘turbulence’ was not declared in this scope Any idea how to solve this? Tony |
|
November 15, 2010, 11:44 |
turbulence model needs to be included
|
#24 | |
Senior Member
Daniel P. Combest
Join Date: Mar 2009
Location: St. Louis, USA
Posts: 621
Rep Power: 0 |
Quote:
|
||
March 26, 2012, 06:51 |
|
#25 |
New Member
shyam prasad
Join Date: Mar 2009
Posts: 25
Rep Power: 17 |
Hi Santhoosh,
Any logic behind increasing the diffusivity from 1e-6 (fluent) to 100 (openfoam). |
|
March 26, 2012, 11:16 |
|
#26 |
Senior Member
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36 |
Do you notice this in your results? One of the most common mistakes is not considering the proper term in the equation. In other words the turbulent diffusivity you have to consider is nut/Sc, being Sc the turbulent Schmidt number.
__________________
Alberto Passalacqua GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541) OpenQBMM - An open-source implementation of quadrature-based moment methods. To obtain more accurate answers, please specify the version of OpenFOAM you are using. |
|
July 11, 2013, 07:14 |
|
#27 | |
New Member
shyam prasad
Join Date: Mar 2009
Posts: 25
Rep Power: 17 |
Quote:
Evening using nut/Sc as the turbulent diffusivity does not help to reproduce the results I have predicted from fluent. in fact in fluent i have made the Sc value very high 10000000 so as to neglect the turbulent diffusivity. the molecular diffusivity value was set to 10e-12. i am using the same parameters in openfoam but the results are way off. any comments or suggestion? |
||
July 12, 2013, 03:47 |
|
#28 | |
Member
santhosh
Join Date: Apr 2009
Location: India
Posts: 70
Rep Power: 17 |
Quote:
There is no logic in doing this and it is wrong to do it. Please don't do it as it is not the reason for wrong results in OpenFOAM. Results between OpenFOAM and Fluent were not matching because of human error of not scaling down the mesh converted to OpenFOAM. scalarTransportFoam in OpenFOAM works pretty fine as it is. As I have mentioned earlier, turbulence effect can be included by adding turbulent diffusivity. Sorry for the confusion, if any, in above posts. |
||
May 14, 2014, 09:10 |
|
#29 | |
New Member
jeicek
Join Date: Nov 2013
Location: Germany
Posts: 18
Rep Power: 13 |
Quote:
Hi guys, Santoo I do the same case. can u plz explaine how should I do these modificarions? I mean shall I creat new solver or change the source code? I m not good in c++ thanks in advanced |
||
May 14, 2014, 11:00 |
|
#30 |
Senior Member
Daniel P. Combest
Join Date: Mar 2009
Location: St. Louis, USA
Posts: 621
Rep Power: 0 |
Greetings! Have you read this thread fully and noticed the post
http://www.cfd-online.com/Forums/ope...tml#post280210 that outlined the equation to be used? The c++ is actually not too painful and if you aren't good its really a great place to start. I would look at the equation from that particular post; decide what information you need i.e. velocity, turbulence schmidt number, nut; take a look at other solvers like solvers/basic/scalarTransportFoam or even icoFoam for inspiration; write your solver and then compile. If you are having issues compiling things then I would take the time to start with learning how to compile OpenFOAM on your own. These days it has become easier and easier to compile using instructions like these or these, depending on if you are using standard or foam extend. Good luck! |
|
May 14, 2014, 16:20 |
|
#31 | |
New Member
jeicek
Join Date: Nov 2013
Location: Germany
Posts: 18
Rep Power: 13 |
Quote:
Can u help me? how should I monitor the concentration at the outle in order to plot the RTD? |
||
May 14, 2014, 16:33 |
|
#32 |
Senior Member
Daniel P. Combest
Join Date: Mar 2009
Location: St. Louis, USA
Posts: 621
Rep Power: 0 |
For monitoring at the outlet, you probably want mixing-cup average. I generally use the tool
simpleFunctionObjects which is part of swak4Foam and use the patchMassFlowAveraged function for mixing-cup average. Again, you will need to be able to compile this tool. |
|
May 16, 2014, 04:02 |
|
#33 | |
New Member
jeicek
Join Date: Nov 2013
Location: Germany
Posts: 18
Rep Power: 13 |
Quote:
http://openfoamwiki.net/index.php/Contrib/swak4Foam So as far I understood in order to use functionobject ( in our case PatchMassFlowAveraged) we need to install (compile) the swak4Foam. But I typed the command wmake all but it has taken very long about 17 hours and still compiling (and my space is about 28 GB)?!! Shall I wait still?? everything is correct?? Thanks in advance |
||
May 16, 2014, 10:48 |
|
#34 |
Senior Member
Daniel P. Combest
Join Date: Mar 2009
Location: St. Louis, USA
Posts: 621
Rep Power: 0 |
@jeicek
Cancel the compilation, it should not take that long. A few questions for you:
It may be best to find threads related to swak4Foam compilation and post there, or start an entirely new thread about your overall goal (in the programming and development sub-forum?). When that happens, post a link here leading others their that may need similar help (a link not asking for help, but informing others that there is a new thread and what the topic is) and I will follow that and answer questions over there. Try to formulate a good post so others will join according to http://www.cfd-online.com/Forums/ope...-get-help.html .I will see you there at your new post |
|
May 22, 2014, 11:20 |
|
#35 | |
New Member
jeicek
Join Date: Nov 2013
Location: Germany
Posts: 18
Rep Power: 13 |
Quote:
|
||
September 22, 2019, 05:52 |
RTD with DT of 100 so did it work fo rth eother modles in seeting diffusion to 100
|
#36 | |
Member
Munaf
Join Date: May 2019
Posts: 42
Rep Power: 7 |
RTD with DT of 100 so did it work fo rth eother modles in seeting diffusion to 100?
Quote:
|
||
September 22, 2019, 10:16 |
|
#37 | |
Senior Member
Ali Shayegh
Join Date: Oct 2015
Posts: 131
Rep Power: 11 |
Quote:
"with DT of 100 so did it work for the other modles..." rather than "with DT of 100 so did it work fo rth eother modles". I also don't understand what do you mean by "seeting diffusion to 100" |
||
May 22, 2020, 12:43 |
|
#38 |
Senior Member
Franco
Join Date: Nov 2019
Location: Compiègne, France
Posts: 129
Rep Power: 7 |
hello everybody,
I have a doubt with the usage of the scalarTransportFoam to calculate the RTD, as i have read several threads, there is a lot of people using it for this, with the need of modification in case that our case that the flow is turbulent. my doubt is in respect to the dimensions of T and D. normally D it should m2/s and T it is a concentration normalized, so it should be adimensional, but in the T file it has unit (K). shouldn't this disrupt the units of the equation? thanks in advance, franco |
|
May 23, 2020, 05:00 |
|
#39 | |
Senior Member
Ali Shayegh
Join Date: Oct 2015
Posts: 131
Rep Power: 11 |
Quote:
"Disruption" occurs when the dimensions of the terms (convection, diffusion, ...) are inconsistent. Setting an arbitrary unit for field T causes no inconsistency. |
||
July 12, 2021, 02:15 |
hie Santoo
|
#40 | |
New Member
Luckmore Kadzungura
Join Date: Jul 2021
Posts: 12
Rep Power: 5 |
Quote:
I know it has been about a decade since you posted this but i have tried what you are suggesting and i keep getting funny errors here are the edits i did. i added this chunk in the createFields.H in scalarTransportFoam: Info<< "Reading field nut\n" << endl; volScalarField nut ( IOobject ( "nut", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE ), mesh ); In the fvShemes i did this' laplacianSchemes { default none; //laplacian(DT,T) Gauss linear corrected; laplacian(DT+nut,phi) Gauss linear corrected; } i am getting the following error: [1] [1] [1] --> FOAM FATAL IO ERROR: (openfoam-2106) [1] Entry 'laplacian(DT,T)' not found in dictionary "stream.laplacianSchemes" [1] [1] [1] file: stream.laplacianSchemes at line 0. [1] [1] From const Foam::entry& Foam::dictionary::lookupEntry(const Foam::word&, Foam::keyType:ption) const [1] in file db/dictionary/dictionary.C at line 413. [1] FOAM parallel run exiting [1] [0] [0] [0] --> FOAM FATAL IO ERROR: (openfoam-2106) [0] Entry 'laplacian(DT,T)' not found in dictionary "/home/lka62/Documents/oF2106/1000/10/scalarT/system/fvSchemes.laplacianSchemes" [0] [0] [0] file: /home/lka62/Documents/oF2106/1000/10/scalarT/system/fvSchemes.laplacianSchemes at line 35 to 37. [0] [0] From const Foam::entry& Foam::dictionary::lookupEntry(const Foam::word&, Foam::keyType:ption) const [0] in file db/dictionary/dictionary.C at line 413. [0] FOAM parallel run exiting [0] [2] [2] [2] --> FOAM FATAL IO ERROR: (openfoam-2106) [2] Entry 'laplacian(DT,T)' not found in dictionary "stream.laplacianSchemes" [2] [2] [2] file: stream.laplacianSchemes at line 0. [2] [2] From const Foam::entry& Foam::dictionary::lookupEntry(const Foam::word&, Foam::keyType:ption) const [2] in file db/dictionary/dictionary.C at line 413. [2] FOAM parallel run exiting what am i doing wrong, its a simulation of flow in porous media and i am using the results from simpleFoam. |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Hardware for Cfx/openfoam calculations of 30-50 million cells | Rkeck | Hardware | 8 | July 13, 2009 13:12 |
transient calculations! | lelia | Siemens | 9 | April 14, 2008 09:33 |
VKI plane turbine cascade calculations | Ong | Main CFD Forum | 0 | June 3, 2003 22:07 |
Difference between two calculations | Lennart | FLUENT | 7 | November 24, 2002 02:19 |
Implicit transient calculations using Fluent5 | G. Berntsen | Main CFD Forum | 4 | November 10, 1999 16:32 |