|
[Sponsors] |
writing a log to check the initial conditions |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 6, 2021, 03:33 |
writing a log to check the initial conditions
|
#1 |
Member
Join Date: Apr 2021
Posts: 41
Rep Power: 5 |
Dear all,
for checking purpose, especially when a simulation does not start well, is there a way to log or to save in a file the initial conditions values of a run, especially when they are calculated with #eval ? here an example of initial conditions file below: Code:
/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: v2012 | | \\ / A nd | Website: www.openfoam.com | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ magUInf 30; flowVelocity ($magUInf 0 0); inletSurf 2; flowRate #eval{ $magUInf * $inletSurf}; tI 1; Lt 0.1; pressure 0; turbKE #eval{ 1.5*($magUInf)*($magUInf)*($tI/100)*($tI/100) }; turbOmega #eval{ sqrt($turbKE)/$Lt }; nut0 #eval{ $turbKE/$turbOmega }; nuTilda0 #eval{ 1*$nut0 }; |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problem with chtMultiregionFoam radiation boundary condition | baran_foam | OpenFOAM Running, Solving & CFD | 10 | December 17, 2019 18:36 |
chtMultiRegionSimpleFoam: maximum number of iterations excedeed. | Nkl | OpenFOAM Running, Solving & CFD | 19 | October 10, 2019 03:42 |
Segmentation fault when using reactingFOAM for Fluids | Tommy Floessner | OpenFOAM Running, Solving & CFD | 4 | April 22, 2018 13:30 |
Orifice Plate with a fully developed flow - Problems with convergence | jonmec | OpenFOAM Running, Solving & CFD | 3 | July 28, 2011 06:24 |
Error while running rhoPisoFoam.. | nileshjrane | OpenFOAM Running, Solving & CFD | 8 | August 26, 2010 13:50 |