CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Taylor-Green Vortex Spatial Error

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 2, 2024, 13:08
Smile Taylor-Green Vortex Spatial Error
  #1
New Member
 
Join Date: Apr 2020
Posts: 2
Rep Power: 0
farah.elias is on a distinguished road
Hi,

I am running a 2D test case for the Taylor-Green vortex in OF. I have a structured uniform mesh (hence deltaX = deltaY, and no non-orthogonality is present).

For the PISO algorithm, the pressure loop is set to 3 while the non-orthogonality corrector is 0.

The numerical schemes chosen are as follows:
  • Unsteady Term --> backward (2nd order)
  • Gradient Terms --> Gauss linear (2nd order)
  • Divergence Terms --> Gauss linear (2nd order)
  • Laplacian Terms --> Gauss linear orthogonal (2nd order)
  • Interpolation --> linear (2nd order)

Theoretically, the discretization should be second-order accurate in space and time. Am I right?

If I try to compute L1, L2, and Linf norms to test the temporal accuracy for different values of deltaT (which I compared to a reference refined solution with very small deltaT), I obtain a log-log plot with a slope ~= 2 for every norm.

While as, if I try and do the same for the spatial accuracy for different values of deltaX (=deltaY), and compare it with the analytical solution, I obtain a slope ~= 1 for every norm.

The procedure for calculating the error norms is the following:
  1. I am running my simulations for different grid sizes (40x40, 80x80, 160x160, and 320x320).
  2. Then I calculated 4 different analytical solutions to get values of p & U on the x and y coordinates that coincide with the x and y coordinates of the CV centers for every grid size where I computed the numerical solution.
  3. Afterward, I calculate the L1, L2, and Linf norms for the velocity error in x and y separately.
  4. Then after obtaining different values of the L1, L2, and Linf errors for every grid spacing I computed the slope, which was equal to 1 for every norm.

What could be the problem here? Why I am not obtaining a second-order accurate solution in space?

Any help is highly appreciated.
farah.elias is offline   Reply With Quote

Reply

Tags
accuracy, openfoam, taylor-green vortex


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
[blockMesh] blockMesh with double grading. spwater OpenFOAM Meshing & Mesh Conversion 92 January 12, 2019 10:00
[OpenFOAM.org] Compile OF 2.3 on Mac OS X .... the patch gschaider OpenFOAM Installation 225 August 25, 2015 20:43
Ansys Fluent 13.0 UDF compilation problem in Window XP (32 bit) Yogini Fluent UDF and Scheme Programming 7 October 3, 2012 08:24
checking the system setup and Qt version vivek070176 OpenFOAM Installation 22 June 1, 2010 13:34
user subroutine error CFDUSER CFX 2 December 9, 2006 07:31


All times are GMT -4. The time now is 12:46.