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

renumberMesh while solving

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By GerhardHolzinger

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 16, 2022, 14:55
Default renumberMesh while solving
  #1
Senior Member
 
qutadah
Join Date: Jun 2021
Location: USA
Posts: 101
Rep Power: 5
qutadah.r is on a distinguished road
Hello everyone,


I have used renumberMesh on a case that was already being solved, and I am not sure if it has messed up anything, since whenever I open my solution in paraview, the field looks weird and somehow wrong.



Attached are photos of same fields of the renumberMesh case and the normal case.


Thanks!
Attached Images
File Type: jpg renumberMesh.jpg (50.6 KB, 33 views)
File Type: jpg normal.jpg (44.9 KB, 32 views)
qutadah.r is offline   Reply With Quote

Old   March 17, 2022, 03:43
Default
  #2
Senior Member
 
Gerhard Holzinger
Join Date: Feb 2012
Location: Austria
Posts: 342
Rep Power: 28
GerhardHolzinger will become famous soon enoughGerhardHolzinger will become famous soon enough
Depending on what actually happened, you might have seriously messed up your case.

When you start your solver, the solver reads the mesh from the polyMesh directory, and then holds this information in memory. This information is then used when writing the fields.

If you execute renumberMesh while the solve is running, you are changing the information in the polyMesh directory. The solver, most probably will not be aware of the changes.

Hence, the solver writes its fields using the old mesh data, while all you post-processing operations use the new mesh data.


This is akin to remodelling the flat of a blind person, without telling him/her.
qutadah.r likes this.
GerhardHolzinger is offline   Reply With Quote

Old   March 17, 2022, 14:18
Default
  #3
Senior Member
 
qutadah
Join Date: Jun 2021
Location: USA
Posts: 101
Rep Power: 5
qutadah.r is on a distinguished road
aha i understand, I do have some timestep solutions from before i executed the renumberMesh. I will try to replace the polyMesh data with the old one and open the old solutions.



Thanks!
qutadah.r is offline   Reply With Quote

Old   March 18, 2022, 03:27
Default
  #4
Senior Member
 
Gerhard Holzinger
Join Date: Feb 2012
Location: Austria
Posts: 342
Rep Power: 28
GerhardHolzinger will become famous soon enoughGerhardHolzinger will become famous soon enough
If you have run renumberMesh with the -overwrite option, then the old mesh is lost.
Whether you can fix your case or not, depends on what exactly you did, and whether the necessary information exists somewhere else.

The best way forward, would be to clear the slate; renumber the mesh, and then afterwards run the simulation. If you are unlucky, the already computed time steps are junk.
GerhardHolzinger is offline   Reply With Quote

Old   March 18, 2022, 05:57
Default
  #5
Senior Member
 
qutadah
Join Date: Jun 2021
Location: USA
Posts: 101
Rep Power: 5
qutadah.r is on a distinguished road
I have the old polyMesh data and already computed some timesteps before running the renumberMesh. I tried however copying the old mesh data into the case and viewing it with the old timesteps in paraview, this has not fixed anything.



What might be the problem?


Thanks!
qutadah.r is offline   Reply With Quote

Reply

Tags
openfoam9, paraview, renumbering, renumbermesh


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
laplacianFoam with source term Herwig OpenFOAM Running, Solving & CFD 17 November 19, 2019 14:47
Segmentation fault when using reactingFOAM for Fluids Tommy Floessner OpenFOAM Running, Solving & CFD 4 April 22, 2018 13:30
chtMultiRegionSimpleFoam turbulent case Aditya Patil OpenFOAM Running, Solving & CFD 6 April 24, 2017 23:13
Unstabil Simulation with chtMultiRegionFoam mbay101 OpenFOAM Running, Solving & CFD 13 December 28, 2013 14:12
calculation stops after few time steps sivakumar OpenFOAM Running, Solving & CFD 7 March 17, 2013 07:37


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