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

rhoPimpleFoam with overset in foam-extend 4.1

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 1 Post By Saleh Abuhanieh
  • 1 Post By Vivio
  • 1 Post By Saleh Abuhanieh

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 20, 2019, 07:25
Default rhoPimpleFoam with overset in foam-extend 4.1
  #1
Member
 
Saleh Abuhanieh
Join Date: Nov 2017
Posts: 82
Rep Power: 8
Saleh Abuhanieh is on a distinguished road
Dear Foamer,


The subject solver has been implemented in OpenFOAM v-1812 (overRhoPimpleDyMFoam).


I wonder if somebody was able to develop the same using foam-extend 4.1.


I tried without success until now, specially that no compressible solver example using overset is available in foam-extend 4.1.


Regards,
Saleh
Zane likes this.
Saleh Abuhanieh is offline   Reply With Quote

Old   June 26, 2019, 10:17
Default
  #2
Member
 
Saleh Abuhanieh
Join Date: Nov 2017
Posts: 82
Rep Power: 8
Saleh Abuhanieh is on a distinguished road
Hi again


Any idea?


Regards
Saleh
Saleh Abuhanieh is offline   Reply With Quote

Old   March 25, 2022, 03:54
Default
  #3
New Member
 
Pengcheng Zhang
Join Date: Aug 2021
Posts: 14
Rep Power: 4
Zane is on a distinguished road
Hi Saleh,


My issue is the same as yours. Have you solved it?

By the way, I only have experience implementing rhoPimDyMFoam in foam-extend 4.1.


I'd appreciate it if you could help me.
Zane is offline   Reply With Quote

Old   March 25, 2022, 04:00
Default
  #4
Member
 
Saleh Abuhanieh
Join Date: Nov 2017
Posts: 82
Rep Power: 8
Saleh Abuhanieh is on a distinguished road
Hi Zhang,


What you are trying to solve?


Regards
Saleh
Saleh Abuhanieh is offline   Reply With Quote

Old   May 23, 2022, 10:54
Default
  #5
New Member
 
Pengcheng Zhang
Join Date: Aug 2021
Posts: 14
Rep Power: 4
Zane is on a distinguished road
Dear Saleh,


Sorry for my late reply.

I am trying to simulate transient process of pump-turbine. To simulate water hammer, the change of density need to be considered, so I choose rhoPimpleFoam as the solver. In addition, to realize the movement of guide vanes, I added the code related to dynamicMesh into rhoPimpleFoam and got my own rhoPimpleDyMFoam in foam-extend-4.1. However, morphing mesh like displacementLaplacian(motionSolver) can not meet my requirements, because the movement of guide vanes is too large for morphing mesh. As a result, I choose to use oversetMesh now, but again, I am stuck due to the problem of parallel running of oversetMesh. I guess this problem comes from decompostion.

I am very glad to help you for what I know, and if you know how to solve my problem, please help me. Thanks in advance.


Best regards
Zhang
Zane is offline   Reply With Quote

Old   May 23, 2022, 16:58
Default
  #6
New Member
 
Join Date: Dec 2019
Posts: 11
Rep Power: 6
Vivio is on a distinguished road
Hi Zane,

Did you get an overset version of rhoPimpleFoam working even in serial?

I am trying to develop an overset version of sonicFoam - or any other compressible solver - in foam-extend and testing it with a simple 1D shock-tube case. To do this I looked at how interFoam compares to interOversetFoam, and modifying sonicFoam on the same basis.

Mostly this seems to consist of using oversetInterpolate(field) after solving each field, but I am missing something and this solver does not run.

However, I have a strange experience with foam-extend, which is that for multiphase I get better results using standard interFoam and including "liboversetMesh.so" in the controlDict, rather than using interOversetFoam. It still does the overset assembly automatically, and in particular there is a really bad pressure anomaly at the overset boundary with interOversetFoam, which is not present using interFoam even with an overset mesh. You can see this pressure anomaly in the dam break tutorial too.

However, I don't get how this works from the source code, since there is nothing in the solver that does the interpolation?? Also, if you try this approach with sonicFoam, it immediately throws a segmentation fault, so it's not universal.
Vivio is offline   Reply With Quote

Old   May 24, 2022, 03:12
Default
  #7
New Member
 
Pengcheng Zhang
Join Date: Aug 2021
Posts: 14
Rep Power: 4
Zane is on a distinguished road
Hi Vivio,


I'm sorry, I'm actually not familiar with the overset mesh in foam-extend. However, I think the overset mesh in openfoam.com (e.g. OpenFOAM-v2112) may help you. It has an overset version of rhoPimpleFoam.

As for your strange problem about interOversetFoam, I suggest you check the paths $FOAM_USER_APPBIN and $FOAM_USER_LIBBIN. Maybe that's bacause you accidentally called the wrong solver and libs. In other words, you ran a solver named "interFoam", but actually it was compiled into "interOversetFoam". In general, if a solver doesn't contain codes related to overset mesh, when you run it, it can not cope with overset mesh even including "liboversetMesh.so".


Best regards
Zane is offline   Reply With Quote

Old   May 25, 2022, 05:18
Default
  #8
Member
 
Saleh Abuhanieh
Join Date: Nov 2017
Posts: 82
Rep Power: 8
Saleh Abuhanieh is on a distinguished road
Hi,


If the geometry is not so complex and the mesh size within 1M, you may try the overRhoPimpleFoam (ESI version). A better alternative can be the HiSA solver (free and openfoam based) which can utilize the ESI overset library.


You may check those:


https://hisa.gitlab.io/doc.html


https://journals.sagepub.com/doi/abs...44100221080771





Regards,
Saleh
Saleh Abuhanieh is offline   Reply With Quote

Old   May 27, 2022, 14:48
Default
  #9
New Member
 
Join Date: Dec 2019
Posts: 11
Rep Power: 6
Vivio is on a distinguished road
Thanks Saleh, I got the ESI version of overRhoPimpleDyMFoam working on the case and it works a treat, at least its comparable to standard rhoPimpleFoam.



Haven't tried HiSA yet but I will check it out and see if it gives better performance, the pressure-based solvers aren't the best when it comes to shock waves anyway.
Saleh Abuhanieh likes this.
Vivio is offline   Reply With Quote

Old   January 2, 2023, 01:39
Default
  #10
New Member
 
Join Date: Feb 2017
Posts: 1
Rep Power: 0
johku is on a distinguished road
Quote:
Originally Posted by Saleh Abuhanieh View Post
- - If the geometry is not so complex and the mesh size within 1M, you may try the overRhoPimpleFoam (ESI version). A better alternative can be the HiSA solver (free and openfoam based) which can utilize the ESI overset library.

You may check those:

https://hisa.gitlab.io/doc.html

https://journals.sagepub.com/doi/abs...44100221080771
- -
Hi Saleh,

Thanks for the link to your publication. How do you enable the ESI overset libraries for the HiSA solver? I tried by adding the following to the system/controlDict and to the constant/dynamicFvMesh files for a static overset case as per the ESI-OpenFOAM tutorials:

controlDict
Code:
libs    (overset fvMotionSolvers);
dynamicMeshDict
Code:
dynamicFvMesh    dynamicOversetMesh
motionSolverLibs    (fvMotionSolvers);
solver    displacementLaplacian;
displacementLaplacianCoeffs
{
diffusivity    uniform 1;
}
These make the static case solution work "sort of": HiSA starts looping the (pseudo) time iterations as expected. However, it also creates the cell-to-cell addressing on each time iteration which I'm not really expecting. I would expect the cell-to-cell addressing to be done only on the first time step for a static case as in the default static overset mesh cases of the ESI-OpenFOAM. For a transient case with moving mesh, this would be acceptable. Am I missing something?

Last edited by johku; January 2, 2023 at 03:02.
johku is offline   Reply With Quote

Old   January 2, 2023, 13:40
Default
  #11
Member
 
Saleh Abuhanieh
Join Date: Nov 2017
Posts: 82
Rep Power: 8
Saleh Abuhanieh is on a distinguished road
Hi,


Yes, for steady-state cases, the Overset Grid Assembly (OGA) algorithm shall work only at the first iteration.


Without going into the implementation details, for now, HiSA is suitable for the transient cases. For steadystate cases, without any code modifications, the OGA will work at each pseudo iteration.

I hope that was useful.

Regards,
Saleh
johku likes this.

Last edited by Saleh Abuhanieh; January 3, 2023 at 00:53.
Saleh Abuhanieh is offline   Reply With Quote

Old   June 20, 2023, 10:34
Smile
  #12
New Member
 
Join Date: Jul 2022
Posts: 18
Rep Power: 3
applekiller is on a distinguished road
Quote:
Originally Posted by Saleh Abuhanieh View Post
Hi,


Yes, for steady-state cases, the Overset Grid Assembly (OGA) algorithm shall work only at the first iteration.


Without going into the implementation details, for now, HiSA is suitable for the transient cases. For steadystate cases, without any code modifications, the OGA will work at each pseudo iteration.

I hope that was useful.

Regards,
Saleh
Hello, excuse me. I have been watching the Hisa solver recently, but I have encountered a question and I am looking forward to your answers.

I have a problem about code, I found this code in the file jacobianMatrix.H

HTML Code:
typedef jacobianMatrix<2,1> compressibleJacobianMatrix;
What do the two numbers 2 and 1 in this code mean? Can this solver only solve two-dimensional problems?

Best wishes
applekiller 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
error with reactingFoam BakedAlmonds OpenFOAM Running, Solving & CFD 4 June 22, 2016 02:21
[blockMesh] error message with modeling a cube with a hold at the center hsingtzu OpenFOAM Meshing & Mesh Conversion 2 March 14, 2012 09:56
[blockMesh] BlockMesh FOAM warning gaottino OpenFOAM Meshing & Mesh Conversion 7 July 19, 2010 14:11
[blockMesh] Axisymmetrical mesh Rasmus Gjesing (Gjesing) OpenFOAM Meshing & Mesh Conversion 10 April 2, 2007 14:00
[Gmsh] Import gmsh msh to Foam adorean OpenFOAM Meshing & Mesh Conversion 24 April 27, 2005 08:19


All times are GMT -4. The time now is 20:59.