CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Can't see results in Paraview, OpenFOAM (https://www.cfd-online.com/Forums/openfoam-solving/255572-cant-see-results-paraview-openfoam.html)

hugolopessilva April 17, 2024 05:08

Can't see results in Paraview, OpenFOAM
 
Hi,

I did a simulation in OpenFOAM 6 and can solve it. However, when I open paraview to see the results, I can only see the velocity U. I tried to see the kinematic pressure p, but I can't see any result there. Any ideas on what I might be doing wrong?

Best regards,

SHUBHAM9595 April 17, 2024 07:24

Hi Johnny,

This might be probably because of the wrong header for the pressure file. Can you share the first few lines of pressure file. Execute the following command in your simulation directory and let us know the output
Code:

head -25 0/p

hugolopessilva April 22, 2024 04:50

Hi,

Thank you for your reply. I am sending the header of the pressure file, which I obtained by writing the command you suggested at the terminal.


/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 8
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
object p;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions [0 2 -2 0 0 0 0];

internalField uniform 0;

boundaryField
{
movingWall
{
type zeroGradient;

SHUBHAM9595 April 23, 2024 15:17

Hi John, are you sure you executed the command in the correct working directory/with correct OF version ? Because your output shows version 8 but right in the beginning you mentioned you are using V6

Code:

/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 8
\\/ M anipulation |
\*---------------------------------------------------------------------------*/

In any case, I dont think this line (either Version : 8 or Version : 6) should be the main cause for your problem (bcz the actual info that matters start from FoamFile). If possible can you share your case file, maybe then its easier to narrow down the reason.

hugolopessilva April 25, 2024 10:18

Hi,

Yeah, I am using version 8 now. I was using version 6 a few weeks ago.

Which file do you mean by case file?


All times are GMT -4. The time now is 04:40.