|
[Sponsors] | |||||
Problem with creating R file for SSG turbulence model |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|
|
#1 |
|
New Member
Mohammad Hossein Khozaei
Join Date: Nov 2011
Posts: 8
Rep Power: 16 ![]() |
Hi guys
I am a bit new to OpenFoam, and I have problem to create R file to start simpleFoam simulation with SSG turbulence model. I have searched all forums, but it has not helped me. My case is a simple pipe including a venturi-tube. Boundary conditions for inlet and outlet are velocity and pressure, respectively. I finished simulation for my case with RNGkEpsilon model and it is converged well. Now, I intend to use the results of RNGkEpsilon model as initial values to start simulation with SSG model. I understood that I have to use "simpleFoam –postProcess –func R" to create the missing R file. I did it several times, but it doesn't work. Actually I don't see any error in the terminal, and I guess the file is created properly. However, I couldn't find the file "turbulenceProperties:R" anywhere in my working directory, nor anywhere on my pc! I would appreciate it if anybody can help me. Thanks. turbulenceProperties: Code:
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1812 |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "constant";
object turbulenceProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
simulationType RAS;
RAS
{
RASModel kEpsilon;
turbulence on;
printCoeffs on;
}
// ************************************************************************* //
controlDict: Code:
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1812 |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "system";
object controlDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
application simpleFoam;
startFrom latestTime;
stopAt endTime;
endTime 2000;
deltaT 1;
writeControl timeStep;
writeInterval 100;
purgeWrite 0;
writeFormat ascii;
writePrecision 6;
writeCompression off;
timeFormat general;
timePrecision 6;
runTimeModifiable true;
************************************************************************* //
What I see in the terminal after using "simpleFoam –postProcess –func R" command: Code:
/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1812 |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : v1812 OPENFOAM=1812
Arch : "LSB;label=32;scalar=64"
Exec : simpleFoam -postProcess -func R
Date : Jun 26 2019
Time : 03:05:41
Host : default
PID : 1141
I/O : uncollated
Case : /home/ofuser/workingDir/.........
nProcs : 1
trapFpe: Floating point exception trapping enabled (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 10)
allowSystemOperations : Allowing user-supplied system call operations
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time
Create mesh for time = 10
SIMPLE: convergence criteria
field p tolerance 0.01
field U tolerance 0.001
field "(k|epsilon|omega|f|v2|R)" tolerance 0.001
turbulenceFields R: storing fields:
turbulenceProperties:R
Time = 10
Reading field p
Reading field U
Reading/calculating face flux field phi
Selecting incompressible transport model Newtonian
Selecting turbulence model type RAS
Selecting RAS turbulence model kEpsilon
RAS
{
RASModel kEpsilon;
turbulence on;
printCoeffs on;
Cmu 0.09;
C1 1.44;
C2 1.92;
C3 0;
sigmak 1;
sigmaEps 1.3;
}
No MRF models present
No finite volume options present
functionObjects::turbulenceFields R writing field: turbulenceProperties:R
End
|
|
|
|
|
|
|
|
|
#2 |
|
New Member
Milad
Join Date: Dec 2020
Posts: 2
Rep Power: 0 ![]() |
Dear Mohammad
I have the same problem as you. Have you solved it? If yes, could you please inform me how can I solve it? Thank you very much Milad |
|
|
|
|
|
|
|
|
#3 |
|
Senior Member
|
Possibly below helps
simpleFoam tutorial PitzDaily using Reynolds stress tensor (LRR RASModel) |
|
|
|
|
|
|
|
|
#4 |
|
New Member
Yushu
Join Date: Apr 2022
Posts: 2
Rep Power: 0 ![]() |
I just found that '-postProcess -func R -latestTime' will only calculate R, instead of running the solver while calculating R. Therefore, I ran my solver first to complete the simulation, after that I ran 'mySolver -postProcess -func R -latestTime' to get R.
I previously thought if I added '-postProcess -func R -latestTime', the solver would run and also compute R, so I only executed 'mySolver', but this was actually telling the code to compute R from nothing! That's why it 'END' without any error message. |
|
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [swak4Foam] Installation Problem with OF 6 version | Aurel | OpenFOAM Community Contributions | 14 | November 18, 2020 17:18 |
| [foam-extend.org] problem when installing foam-extend-1.6 | Thomas pan | OpenFOAM Installation | 7 | September 9, 2015 22:53 |
| [swak4Foam] Problem installing swak_2.x for OpenFoam-2.4.0 | towanda | OpenFOAM Community Contributions | 6 | September 5, 2015 22:03 |
| OpenFOAM on MinGW crosscompiler hosted on Linux | allenzhao | OpenFOAM Installation | 127 | January 30, 2009 20:08 |
| ParaView Compilation | jakaranda | OpenFOAM Installation | 3 | October 27, 2008 12:46 |