CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Visualization & Post-Processing Software > ParaView

[OpenFOAM] Velocity not visible

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 3, 2024, 07:19
Default Velocity not visible
  #1
New Member
 
Laura
Join Date: Jan 2024
Location: Belgium
Posts: 4
Rep Power: 2
lv0907 is on a distinguished road
After running my model in Openfoam, I want to process it in Paraview. I don't see the velocity field in my model. Does someone perhaps now what is wrong with it? Is it because I need to do an extra step in Paraview? Or is it because my model doesn't provide the velocity as an output?

I have made my controlDict as follows:

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

FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "system";
object controlDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

application interFoam;

startFrom startTime;

startTime 0;

stopAt endTime;

endTime 0.003;

deltaT 0.003;

writeControl adjustableRunTime;

writeInterval 0.003;

purgeWrite 0;

writeFormat ascii;

writePrecision 6;

writeCompression off;

timeFormat general;

timePrecision 6;

runTimeModifiable yes;

adjustTimeStep yes;

maxCo 1;

maxAlphaCo 1;

maxDeltaT 0.1;

functions
{
turbulenceFields1
{
// Mandatory entries (unmodifiable)
type turbulenceFields;
libs (fieldFunctionObjects);

// Mandatory entries (runtime modifiable)
// Either field or fields entries
fields (k R);
}
}

// ************************************************** *********************** //
Attached Images
File Type: jpg Paraview.jpg (103.6 KB, 7 views)

Last edited by lv0907; January 3, 2024 at 11:47.
lv0907 is offline   Reply With Quote

Old   January 9, 2024, 02:51
Default
  #2
Senior Member
 
M
Join Date: Dec 2017
Posts: 642
Rep Power: 12
AtoHM is on a distinguished road
In general, Paraview can only show fields that were written out by the solver. So a first step would be to check in the time folders created, the presence of a file "U". What probably happens is, that you specify the writeInterval with 0.003 which is also the endTime. The timestep you visualize in PV is 0.0004.
The fact that you see this timestep at all, I think is, because of the functions { turbulenceFields1 ... } in your controlDict. Without giving a writeControl there, it will print out these values at each iteration.


So a solution would be to lower the global writeInterval so it prints U in intermediate steps too. Keep in mind that this prints not only U in intermediate steps but also alpha, rho, ... . You can also use writeCompression on; in the controlDict and still see everything in Paraview, which saves you some storage space.
AtoHM is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Unexpected velocity profiles for pipe flow with elbows K-al-Eps-o Main CFD Forum 20 March 21, 2023 14:04
wrong velocity contour of rotating propeller - Fluent calv FLUENT 1 September 6, 2018 11:48
Problem with Velocity Poisson Equation and Vector Potential Poisson Equation mykkujinu2201 Main CFD Forum 1 August 12, 2017 13:15
Terrible Mistake In Fluid Dynamics History Abhi Main CFD Forum 12 July 8, 2002 09:11
what the result is negatif pressure at inlet chong chee nan FLUENT 0 December 29, 2001 05:13


All times are GMT -4. The time now is 18:34.