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

Problem with functionObjects and parallel Processing

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 20, 2024, 13:14
Default Problem with functionObjects and parallel Processing
  #1
Member
 
Amirhossein Taran
Join Date: Sep 2016
Location: Dublin, Ireland
Posts: 56
Rep Power: 10
amirhosseintaran is on a distinguished road
Hello Everyone,
When I'm trying to run a case with one of the filedFunctionObjects called interfaceHeight, I'm facing a strange problem. Imagine I have assigned the write interval to each of two-time steps; the solver freezes at the time it is trying to write. Before asking the system support to check the validity of their OpenFOAM compilation, Has anyone faced something similar to this?

I checked other function objects, and they can write to the hard drive without any problem, also, the odd thing is there is no error! it just waits without any crash till the end 😄

Please let me know your thoughts on this.
amirhosseintaran is offline   Reply With Quote

Old   August 21, 2024, 03:33
Default
  #2
Member
 
Lorenzo
Join Date: Apr 2020
Location: Italy
Posts: 46
Rep Power: 6
Lorenzo210 is on a distinguished road
Hi,


Which OpenFOAM version are you using?
Can you share a test case where the problem is occurring?

Also, I am not sure what you mean by
Quote:
Imagine I have assigned the write interval to each of two-time steps

I tried interfaceHeight in one of the tutorials available in OpenFOAM-v2312 and there's no issue with writing the output.


Cheers,
Lorenzo
Lorenzo210 is offline   Reply With Quote

Old   August 21, 2024, 09:07
Default
  #3
Member
 
Amirhossein Taran
Join Date: Sep 2016
Location: Dublin, Ireland
Posts: 56
Rep Power: 10
amirhosseintaran is on a distinguished road
Hi Lorenzo,
First of all, I had to say that I forgot to mention it is happening during parallel processing, when I'm on a single core, everything is fine.

Quote:
Which OpenFOAM version are you using?
It is 2312.

Also by

Quote:
Imagine I have assigned the write interval to each of two-time steps
I meant this:
HTML Code:
writeControl    timeStep;
writeInterval   2;
Quote:
I tried interfaceHeight in one of the tutorials available in OpenFOAM-v2312, and there's no issue with writing the output.
Yes, It is working for me, too (in serial). But in this specific cluster that I am working on, at the end of each timestep, the whole system freezes when it's about to write the functionObject data. Mostly, I was looking for ideas for tackling the issue here. I tried to compile a copy of my own interfaceHeight called myInterfaceHeight (everything is the same as the original, just renamed), but that also failed to write the output.


Cheers,
Amir.
amirhosseintaran is offline   Reply With Quote

Old   August 21, 2024, 09:47
Default
  #4
Member
 
Lorenzo
Join Date: Apr 2020
Location: Italy
Posts: 46
Rep Power: 6
Lorenzo210 is on a distinguished road
Hi Amir,



Thanks for the information.


I ran the tutorial even in parallel, it works with different decomposition method, number of cores, writeInterval etc.


I used both interCondensatingEvaporatingFoam and interFoam.


As an initial guess, it could be a good idea to test a coarse and fast version of your test case on a regular computer and understand if the issue is correlated with the cluster you are working with..



However, It looks weird that other functions object work, because it makes it look like interfaceHeight has something wrong here..


Unfortunately I have no experience in running interfaceHeight on clusters.




Cheers,
Lorenzo
Lorenzo210 is offline   Reply With Quote

Old   August 22, 2024, 07:03
Default
  #5
Member
 
Amirhossein Taran
Join Date: Sep 2016
Location: Dublin, Ireland
Posts: 56
Rep Power: 10
amirhosseintaran is on a distinguished road
Hi Lorenzo,

Thanks for this,

Quote:
I ran the tutorial even in parallel, it works with different decomposition method, number of cores, writeInterval etc.


I used both interCondensatingEvaporatingFoam and interFoam.
Yes, exactly it is working on my machine even in parallel, but fails in the cluster that I am using.




Quote:
However, It looks weird that other functions object work, because it makes it look like interfaceHeight has something wrong here..


Unfortunately I have no experience in running interfaceHeight on clusters.
yes, its strange to me too, anyway, thanks for your time.

Bests,
Amir.
amirhosseintaran is offline   Reply With Quote

Reply

Tags
functionobjects, interfoam, parallel computation


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
Problem with writeIntegratedHeader functionObject in parallel processing Shibi OpenFOAM Programming & Development 1 May 16, 2021 16:44
Problem in Running OpenFoam in Parallel himanshu28 OpenFOAM Running, Solving & CFD 1 July 11, 2013 10:19
Problem with functionObjects in parallel anishtain4 OpenFOAM 4 February 12, 2013 06:27
OpenFOAM v1.6 & OpenMPI & functionObjects bruce OpenFOAM Bugs 7 December 16, 2011 15:37
OpenFOAM v1.6 & OpenMPI & functionObjects bruce OpenFOAM Running, Solving & CFD 1 August 7, 2009 14:15


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