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

Comparison OpenFOAM results with analytical ones

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 7, 2018, 12:29
Default Comparison OpenFOAM results with analytical ones
  #1
Member
 
Wenming Yang
Join Date: Jun 2018
Posts: 42
Rep Power: 9
ywem is on a distinguished road
Hi, I compared the results from OpenFOAM with the analytical ones for the equation

in an spherical symmetry space using 2D model like this


These are the solver codes,
#include "fvCFD.H"
#include "simpleControl.H"

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
int main(int argc, char *argv[])
{
#include "setRootCase.H"

#include "createTime.H"
#include "createMesh.H"
#include "createFields.H"

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Info<< "\nStarting iteration loop\n" << endl;

simpleControl simple(mesh);

while (runTime.loop())
{
Info<< "Iteration = " << runTime.timeName() << nl << endl;

while (simple.correctNonOrthogonal())
{

solve
(
fvm::ddt(na)- Dab*(fvm::laplacian(na))
);
}

runTime.write();
Info<< "ExecutionTime = " << runTime.elapsedCpuTime() << " s"
<< " ClockTime = " << runTime.elapsedClockTime() << " s"
<< nl << endl;
}

Info<< "End\n" << endl;
return 0;
}



However, the results are much larger than the analytical ones. I have tried to refine the mesh and put the outer surface much far away, but they did not make sense. I do not know why.
ywem is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Map of the OpenFOAM Forum - Understanding where to post your questions! wyldckat OpenFOAM 10 September 2, 2021 05:29
OpenFOAM Training Jan-Apr 2017, Virtual, London, Houston, Berlin cfd.direct OpenFOAM Announcements from Other Sources 0 September 21, 2016 11:50
sod tube analytical solution comparison Ardalan Main CFD Forum 0 November 17, 2015 08:02
comparison with analytical results (1D)and(3D) CFX Rogerio Fernandes Brito FLUENT 1 December 2, 2012 06:12
Ansys/Fluent and OpenFoam comparison, LES, XiFoam, Smagorinsky achinta OpenFOAM 5 June 11, 2012 12:48


All times are GMT -4. The time now is 22:54.