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

How to give enough info to get help

Register Blogs Community New Posts Updated Threads Search

Like Tree84Likes
  • 62 Post By linnemann
  • 3 Post By niklas
  • 5 Post By akidess
  • 12 Post By wyldckat
  • 1 Post By gschaider
  • 1 Post By musahossein

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 23, 2012, 03:48
Exclamation How to give enough info to get help
  #1
Senior Member
 
linnemann's Avatar
 
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 556
Rep Power: 27
linnemann will become famous soon enough
This is a repost of another post hoping that it can be made sticky.

An example on how to get proper help following the guideline shown.

I will try to give an example taken purely from my own imagination that show the kind of info I would like in order to help people.

=== 0 ===
Prepare for getting help. cfd-online does not provide large filesize uploads so registering a dropbox/box account and use a public link to the picture/file makes it a lot easier to share files/pics or the full case.

=== 1 ===

First give it a relevant name in the title of the thread

simpleFoam pipe case diverges

What this little information tells us is that the solver is simpleFoam, the geometry is a pipe and we know that the problem is that it diverges.

=== 2 ===
Second give a sketch of the geometry, a screendump of the mesh and maybe even a cut through the mesh. Paraview and the Clip filter works good here.
This helps immensely when trying to visualise the case in others brains.
The "a picture says more than a thousand words" quote springs to mind here

Below is an example of a picture inserted using a public link from dropbox.



Also the first info you need to give is the output from checkMesh put into a log file

Code:
checkMesh > checkMesh.log
checkMesh.log

Ok now people know that you have a pipe with two bends and that the mesh is fully structured (paraview shows some as tets, but that is a render issue). The dimensions of the pipe is also known now. Also from the header files people know that you are using OpenFOAM version 2.1.x, this is relevant since there can be some bugs in the version used.

=== 3 ===
Ok now we are ready to start identifying the problem.
You know that you have divergence problems and if you have opened just one book about CFD, you know that stability is related to a number of things.
  • Mesh -> We get good output from checkMesh so thats ok
  • Solver -> This we get from the fvSolution file so upload/link that
  • Schemes -> From the fvSchemes file so upload/link that

fvSolution
fvSchemes

This will allow people to see if you have the correct setup for the type of case/mesh you have.

=== 4 ===
Also some good information to give is the output from the terminal, but please don't post 10+ iterations. Post only the relevant bits, for example the 2-3 iterations where the solver start to diverge. Another options would be to give the log file as a upload/link. The output can be put into a file using.

Code:
simpleFoam > simpleFoam.log 2>&1
Below is an example of two iterations, they don't diverge but you get the drift.

Code:
Time = 11

smoothSolver:  Solving for Ux, Initial residual = 0.0394701, Final residual = 0.00283316, No Iterations 4
smoothSolver:  Solving for Uy, Initial residual = 0.0244406, Final residual = 0.00163773, No Iterations 4
smoothSolver:  Solving for Uz, Initial residual = 0.211626, Final residual = 0.0144428, No Iterations 4
GAMG:  Solving for p, Initial residual = 0.332445, Final residual = 0.0124884, No Iterations 7
time step continuity errors : sum local = 0.0803619, global = 0.0111056, cumulative = 0.0907056
smoothSolver:  Solving for epsilon, Initial residual = 0.0137779, Final residual = 0.000915039, No Iterations 3
smoothSolver:  Solving for k, Initial residual = 0.0205267, Final residual = 0.00103642, No Iterations 4
ExecutionTime = 6.07 s  ClockTime = 6 s

Time = 12

smoothSolver:  Solving for Ux, Initial residual = 0.0966665, Final residual = 0.00756253, No Iterations 4
smoothSolver:  Solving for Uy, Initial residual = 0.103096, Final residual = 0.00828772, No Iterations 4
smoothSolver:  Solving for Uz, Initial residual = 0.122408, Final residual = 0.00767765, No Iterations 4
GAMG:  Solving for p, Initial residual = 0.181939, Final residual = 0.00707472, No Iterations 5
time step continuity errors : sum local = 0.0780837, global = -0.0134194, cumulative = 0.0772862
smoothSolver:  Solving for epsilon, Initial residual = 0.0127022, Final residual = 0.000977349, No Iterations 3
smoothSolver:  Solving for k, Initial residual = 0.0222577, Final residual = 0.00121352, No Iterations 4
ExecutionTime = 6.46 s  ClockTime = 7 s
=== 5 ===
This might seem like a lot of work, but if you want people to invest time on you, you must invest at least as much time in asking the right question and give sufficient input to allow people to help you.

I'm sure that if you follow this simple guide you will get the help you need.
pad, kwardle, Far and 59 others like this.
__________________
Linnemann

PS. I do not do personal support, so please post in the forums.

Last edited by Tobi; September 21, 2017 at 14:39. Reason: Updated Links
linnemann is offline   Reply With Quote

Old   March 23, 2012, 10:33
Default
  #2
Super Moderator
 
niklas's Avatar
 
Niklas Nordin
Join Date: Mar 2009
Location: Stockholm, Sweden
Posts: 693
Rep Power: 29
niklas will become famous soon enoughniklas will become famous soon enough
I made this thread sticky.

And some other points.
Don't hijack other threads and don't post the same question multiple times.
I see that some people post new questions in active threads cause they think this will attract more readers. Do not do this, since it makes it really hard to search the forum.

And heads up. If you post a question in this thread I will just remove it. So don't do that either.
Tobi, ayubsulong and baldbrain like this.
niklas is offline   Reply With Quote

Old   March 31, 2012, 07:47
Default
  #3
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30
akidess will become famous soon enough
Linnemann's sample post and some more tips can be found on the wiki as well: http://openfoamwiki.net/index.php/Ho..._Message_Board
__________________
*On twitter @akidTwit
*Spend as much time formulating your questions as you expect people to spend on their answer.
akidess is offline   Reply With Quote

Old   August 9, 2012, 06:23
Default
  #4
Member
 
Amin Shariat KHah
Join Date: Apr 2011
Location: Shiraz
Posts: 86
Rep Power: 15
amin144 is on a distinguished road
It's a good job that people doing in other forums always.
Summarizing all different thread about one subject.
It will be more perfect with attached simple cases for download for new users.
And finally some threds like it could became a pdf file for users.
amin144 is offline   Reply With Quote

Old   February 10, 2013, 07:52
Default
  #5
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30
akidess will become famous soon enough
Relevant: doi:10.1371/journal.pcbi.1002202 (http://www.ploscompbiol.org/article/...l.pcbi.1002202)
chegdan, bigphil, wyldckat and 2 others like this.
__________________
*On twitter @akidTwit
*Spend as much time formulating your questions as you expect people to spend on their answer.
akidess is offline   Reply With Quote

Old   May 1, 2013, 18:13
Default
  #6
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Section "3.3.3 Solver output" at openfoamwiki.net already explains the following, but feel free to point people to this post for instructions on how to post code in the forum.
__________________

Take for example this piece of code:
Code:
        nSend = 0;
        forAll(complexData, i)
        {
            label procI = complexData[i].first();
            sendMap[procI][nSend[procI]++] = i;
        }
It looks nice and tidy, because I used the "[CODE]" tag. Without it, it would look something like this:

nSend = 0;
forAll(complexData, i)
{
label procI = complexData[i].first();
sendMap[procI][nSend[procI]++] = i;
}


So, to avoid messy looking posts with ugly code in the middle of a post, use the "[CODE]" tag. There are two ways to do this:
  1. You can type it manually like this:
    HTML Code:
     [CODE]        nSend = 0;        forAll(complexData, i)        {            label procI = complexData[i].first();            sendMap[procI][nSend[procI]++] = i;        }[/CODE]
  2. Or you can use the forum interface, more specifically the "Advanced Editor Interface", by clicking on the hash-tag symbol , as shown in the attached images "before.png" and "after.png" (the 1st and 2nd images, look to where the red arrow is pointing).
  3. The "Advanced Editor Interface" can be accessed by clicking on the button "Go Advanced", as shown in the attached image "quick_reply.png" (the 3rd image, look to where the red arrow is pointing).
Attached Images
File Type: png before.png (43.1 KB, 584 views)
File Type: png after.png (45.5 KB, 453 views)
File Type: png quick_reply.png (39.5 KB, 412 views)
__________________

Last edited by wyldckat; March 6, 2018 at 16:58. Reason: fixed image link
wyldckat is offline   Reply With Quote

Old   June 20, 2013, 20:59
Default
  #7
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Two more things of a more technical nature (that are bothering me sometimes):
  • When showing pictures from paraview if possible use the cell values as these are the values that OpenFOAM uses/writes. The point values are interpolated by Paraview so any "problem" you see there may be a paraview problem
  • If referring to an article in another thread please use the permalink (the #42 in the upper right corner of the article). Threads can be very long and you can't expect people to read them as a whole an guess what article you meant

Maybe these points can be added if the original article is updated/extended (along with other valuable remarks in this thread like on citing code etc)
aerospaceman likes this.
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   February 22, 2015, 13:10
Default
  #8
Senior Member
 
musaddeque hossein
Join Date: Mar 2009
Posts: 309
Rep Power: 18
musahossein is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Section "3.3.3 Solver output" at openfoamwiki.net already explains the following, but feel free to point people to this post for instructions on how to post code in the forum.
__________________

Take for example this piece of code:
Code:
        nSend = 0;
        forAll(complexData, i)
        {
            label procI = complexData[i].first();
            sendMap[procI][nSend[procI]++] = i;
        }
It looks nice and tidy, because I used the "[CODE]" tag. Without it, it would look something like this:

nSend = 0;
forAll(complexData, i)
{
label procI = complexData[i].first();
sendMap[procI][nSend[procI]++] = i;
}


So, to avoid messy looking posts with ugly code in the middle of a post, use the "[CODE]" tag. There are two ways to do this:
  1. You can type it manually like this:
    HTML Code:
     [CODE]        nSend = 0;        forAll(complexData, i)        {            label procI = complexData[i].first();            sendMap[procI][nSend[procI]++] = i;        }[/CODE]
  2. Or you can use the forum interface, more specifically the "Advanced Editor Interface", by clicking on the hash-tag symbol , as shown in the attached images "before.png" and "after.png" (the 1st and 2nd images, look to where the red arrow is pointing).
  3. The "Advanced Editor Interface" can be accessed by clicking on the button "Go Advanced", as shown in the attached image "quick_reply.png" (the 3rd image, look to where the red arrow is pointing).
Thanks. i will make sure that I follow this in the future!
lenzo likes this.

Last edited by wyldckat; March 6, 2018 at 16:58. Reason: fixed image link
musahossein is offline   Reply With Quote

Old   September 20, 2017, 10:19
Default
  #9
Senior Member
 
linnemann's Avatar
 
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 556
Rep Power: 27
linnemann will become famous soon enough
Hi mods, is it possible i can get to edit the first post updating the links to pictures and files?
__________________
Linnemann

PS. I do not do personal support, so please post in the forums.
linnemann 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
[Gmsh] "Perhaps you have not exported the 3D elements?" j_moulton OpenFOAM Meshing & Mesh Conversion 14 October 6, 2022 22:58
[Gmsh] 3D coil mesh: can't create the volume? RomainBou OpenFOAM Meshing & Mesh Conversion 3 July 18, 2016 06:09
OpenFoam error kvk OpenFOAM 0 February 21, 2016 08:57
[Gmsh] Vertex numbering is dense KateEisenhower OpenFOAM Meshing & Mesh Conversion 7 August 3, 2015 11:49
How to give volume fraction in multiphase models chhanwal FLUENT 0 August 13, 2009 01:07


All times are GMT -4. The time now is 04:19.