|
[Sponsors] |
Comparison OpenFOAM results with analytical ones |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#1 |
Member
Wenming Yang
Join Date: Jun 2018
Posts: 42
Rep Power: 9 ![]() |
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. |
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
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 |