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

Lack of storage

Register Blogs Community New Posts Updated Threads Search

Like Tree5Likes
  • 1 Post By Yann
  • 1 Post By Yann
  • 1 Post By Yann
  • 1 Post By Yann
  • 1 Post By saeed jamshidi

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 18, 2023, 05:13
Default Lack of storage
  #1
Senior Member
 
Saeed Jamshidi
Join Date: Aug 2019
Posts: 214
Rep Power: 7
saeed jamshidi is on a distinguished road
Hi all,

I going to run my simulation, but there is not enough space on my computer. Is there any alternative to come up with?
Some space is occupied by the parallel running and other because of reconstruction!
saeed jamshidi is offline   Reply With Quote

Old   November 19, 2023, 06:20
Default
  #2
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,104
Rep Power: 26
Yann will become famous soon enough
Hello Saeed,

Reconstructing data is unnecessary. You can visualize decomposed data with ParaView native reader for OpenFOAM. Instead of using paraFoam, use paraFoam -builtin or just create an empty file with .foam extension (for instance touch case.foam) and load it in paraview. You will have an option to select if you want to load the reconstructed or decomposed case.

Hope this helps,
Yann
saeed jamshidi likes this.
Yann is offline   Reply With Quote

Old   November 19, 2023, 06:48
Default
  #3
Senior Member
 
Saeed Jamshidi
Join Date: Aug 2019
Posts: 214
Rep Power: 7
saeed jamshidi is on a distinguished road
Hi Yann,
Thanks for your reply.

So you are saying I should follow below procedures:

Code:
cd ${0%/*} || exit 1
clear
source clean
source .color
#-----------------------------------------------------------------------
echo -e "   - Copy 0.orig to 0"
cp -r 0.orig 0
#------------------------------------------------------------------------------
echo -e "   - Create background mesh"
blockMesh
surfaceFeatureExtract
#------------------------------------------------------------------------------
echo -e "   - Meshing with snappyHexMesh"
mpirun -np 6 snappyHexMesh -overwrite 
checkMesh
#-----------------------------------------------------------------------
echo -e "   - Decomposition"
decomposePar
#-----------------------------------------------------------------------
echo -e "   - run"
mpirun -np 6 pimpleFoam -parallel

#-----------------------------------------------------------------------
echo -e "   - reconstruction"
 #   reconstructPar //According Yann opinion
#-----------------------------------------------------------------------
echo -e "   - Demonstration"
postProcess -func vorticity
touch foam.foam
paraview foam.foam

#------------------------------------------------------------------------------

Last edited by saeed jamshidi; November 19, 2023 at 08:07.
saeed jamshidi is offline   Reply With Quote

Old   November 20, 2023, 03:34
Default
  #4
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,104
Rep Power: 26
Yann will become famous soon enough
Hello Saeed,

Yes, except your should run the postProcess command in parallel:

Code:
mpirun -np 6 postProcess -func vorticity -parallel
Once you have launched paraview, don't forget to switch the case type from "reconstructed case" to "decomposed case".

Cheers,
Yann
Attached Images
File Type: png screenshot.png (26.1 KB, 9 views)
saeed jamshidi likes this.
Yann is offline   Reply With Quote

Old   November 20, 2023, 04:08
Default
  #5
Senior Member
 
Saeed Jamshidi
Join Date: Aug 2019
Posts: 214
Rep Power: 7
saeed jamshidi is on a distinguished road
Thank you Yann,

Does write format of binary instead of ascci in controlDict reduce size of exported files in zero folder?
saeed jamshidi is offline   Reply With Quote

Old   November 20, 2023, 04:12
Default
  #6
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,104
Rep Power: 26
Yann will become famous soon enough
Yes, using binary format should use less space on the time directories written to disk.
saeed jamshidi likes this.
Yann is offline   Reply With Quote

Old   November 26, 2023, 12:22
Default
  #7
Senior Member
 
Saeed Jamshidi
Join Date: Aug 2019
Posts: 214
Rep Power: 7
saeed jamshidi is on a distinguished road
Hi again,

Just ending this thread, I also found that when we use cache utility in fvsolution in order to save previous time step date and accelerate running, it occupies significant space of your PC. So, we can pause running and resume it again for the storage space recovery.

Code:
cache
{
    grad(U);
}
saeed jamshidi is offline   Reply With Quote

Old   December 12, 2023, 12:41
Default
  #8
Senior Member
 
Saeed Jamshidi
Join Date: Aug 2019
Posts: 214
Rep Power: 7
saeed jamshidi is on a distinguished road
Hi again,


In three dimensional simulation due to large number of cells we may encounter with lack of storage space! Since we write various parameters such as U, P, T and ... and they have large size.

The question: is it possible to store run data on other drives of our computer instead of 'C'?!
saeed jamshidi is offline   Reply With Quote

Old   December 13, 2023, 03:10
Default
  #9
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,104
Rep Power: 26
Yann will become famous soon enough
Hello,

You can run from any place, as long as the computers running OpenFOAM have permissions to access the case files.

Performance may vary depending on read/write times on the storage you are using.

Regards,
Yann
Yann is offline   Reply With Quote

Old   December 13, 2023, 03:24
Default
  #10
Senior Member
 
Saeed Jamshidi
Join Date: Aug 2019
Posts: 214
Rep Power: 7
saeed jamshidi is on a distinguished road
Hi Yann,

thank you for the reply.

Could you give me more assistance?

According to the picture I am using Ubuntu. It directly stores data on C.
Attached Images
File Type: png Screenshot (193).png (27.9 KB, 4 views)
saeed jamshidi is offline   Reply With Quote

Old   December 13, 2023, 03:47
Default
  #11
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,104
Rep Power: 26
Yann will become famous soon enough
Alright, you're using WSL.
Your drives should be listed in /mnt/ so you should be able to access it doing something like this for instance:
Code:
cd /mnt/e/
Internal drives should be mounted by default. If you want to use an external drive you may have to mount it manually

Cheers,
Yann
saeed jamshidi likes this.
Yann is offline   Reply With Quote

Old   December 13, 2023, 04:19
Default
  #12
Senior Member
 
Saeed Jamshidi
Join Date: Aug 2019
Posts: 214
Rep Power: 7
saeed jamshidi is on a distinguished road
Thank you Yann,
it worked for me.
Attached Images
File Type: jpg Screenshot (194).jpg (99.9 KB, 6 views)
Yann likes this.
saeed jamshidi 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
The udf.h headers are unable to open- in VISUAL STUDIO 13 sanjeetlimbu Fluent UDF and Scheme Programming 4 May 2, 2016 05:38
Stability and Realibility of microfluidic droplets storage in tube or storage coil devalvyas System Analysis 0 February 2, 2016 11:49
How to stabilize hydrograph outflow of a storage hydr_eng1805 FLOW-3D 0 January 17, 2015 05:18
Problem with UDF compiling for kTkLW model Wantami FLUENT 0 July 18, 2011 05:11
Diagonal storage for c-grid airfoil possible? zonexo Main CFD Forum 1 May 10, 2006 13:43


All times are GMT -4. The time now is 16:32.