|
[Sponsors] |
January 3, 2024, 08:19 |
Velocity not visible
|
#1 |
New Member
Laura
Join Date: Jan 2024
Location: Belgium
Posts: 4
Rep Power: 2 |
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); } } // ************************************************** *********************** // Last edited by lv0907; January 3, 2024 at 12:47. |
|
January 9, 2024, 03:51 |
|
#2 |
Senior Member
M
Join Date: Dec 2017
Posts: 703
Rep Power: 13 |
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. |
|
|
|
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 15:04 |
wrong velocity contour of rotating propeller - Fluent | calv | FLUENT | 1 | September 6, 2018 12:48 |
Problem with Velocity Poisson Equation and Vector Potential Poisson Equation | mykkujinu2201 | Main CFD Forum | 1 | August 12, 2017 14:15 |
Terrible Mistake In Fluid Dynamics History | Abhi | Main CFD Forum | 12 | July 8, 2002 10:11 |
what the result is negatif pressure at inlet | chong chee nan | FLUENT | 0 | December 29, 2001 06:13 |