|
[Sponsors] |
November 11, 2019, 09:16 |
[Solids4Foam] Compressible fluid solver
|
#1 |
New Member
Join Date: Nov 2018
Location: Japan
Posts: 17
Rep Power: 7 |
Hello everyone!
I have been trying to implement cavitatingFoam on solids4Foam but I'm facing a problem. I know no compressible solvers are implemented so I don't know how I could do it. Corresponding source codes are attached and if somebody can help me it would be very helpful. |
|
November 11, 2019, 10:21 |
|
#2 |
Super Moderator
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,089
Rep Power: 34 |
Hi!
What exactly is the problem? The procedure to create a new fluid/solid model is to find a similar one, then copy it and rename it and check it compiles. Then change the code bit-by-bit and recompile as you go. Philip |
|
November 11, 2019, 10:51 |
|
#3 |
New Member
Join Date: Nov 2018
Location: Japan
Posts: 17
Rep Power: 7 |
My code attached can be compiled without any errors but the problem is the solution I got from the new solver seems wrong. Unfortunately I can't show you the result because it is a confidential research but It is clearly different from the incompressible one. (At least the tendency should be similar.)
I checked my code again and again but I could not find what causing the problem. My guess was my code itself is not correct. My code is mostly identical with the one from foam-extend-4.0 though. I think since it is cavitatingFoam is not for dynamic mesh, it might needs something to change to implement on solids4Foam. |
|
November 11, 2019, 11:10 |
|
#4 | |
Senior Member
Daniel
Join Date: Mar 2013
Location: Noshahr, Iran
Posts: 348
Rep Power: 21 |
Quote:
I have implemented cavitatingFluid for the old fsi toolkit a few month ago as someone else requested: Compilation Issues with CavitatingFluid FSI Code It should be easy to make it compatible with solids4Foam code structure. Note: please carefully check the code line by line before running your case as I never found the time to test it. Specially when it comes to the dynamic mesh modeling. Regards, D. Khazaei |
||
November 11, 2019, 11:45 |
|
#5 |
Super Moderator
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,089
Rep Power: 34 |
I suggest verifying your cavitatingFluid solids4Foam implementation against the cavitatingFoam solver on e.g. the cavitatingFoam tutorial case(s). This will let you check if you ported the code correctly.
As for dynamicMesh, yes the code will need to be modified e.g. look at the difference between icoFoam and icoDyFoam. Philip |
|
November 11, 2019, 23:49 |
|
#6 |
New Member
Join Date: Nov 2018
Location: Japan
Posts: 17
Rep Power: 7 |
Hello,
Thank you very much for sharing your solver, Daniel! I think your solver is basically the same as mine and I still have a problem. I checked my code as Philip suggested but I did not find anything wrong. I cannot show you the whole picture but I attached a picture showing the problem. It's like checkerboard but I don't understand what causes this. |
|
November 12, 2019, 05:45 |
|
#7 | |
Super Moderator
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,089
Rep Power: 34 |
Quote:
|
||
November 12, 2019, 11:19 |
|
#8 |
New Member
Join Date: Nov 2018
Location: Japan
Posts: 17
Rep Power: 7 |
I think I did like it's done in interFluid but still got a wrong result. Maybe it is a specific error for my case so I will test with more simple cases.
|
|
November 12, 2019, 21:07 |
|
#9 | |
Senior Member
Daniel
Join Date: Mar 2013
Location: Noshahr, Iran
Posts: 348
Rep Power: 21 |
Quote:
If yes then we can make sure that the dynamicMesh is the problem. |
||
November 12, 2019, 22:22 |
|
#10 |
New Member
Join Date: Nov 2018
Location: Japan
Posts: 17
Rep Power: 7 |
I just checked with cavitatingFoam in foam-extend and also checked with pimpleFoam. And they produced pretty similar results so I can say the problem is in dynamicMesh.
|
|
November 13, 2019, 05:34 |
|
#11 |
Super Moderator
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,089
Rep Power: 34 |
I suggest you try a dynamicMesh problem without FSI first e.g. you could try directly modify cavitatingFoam, so you can isolate the problem away from solids4Foam/FSI issues.
Philip |
|
January 10, 2023, 10:11 |
|
#12 |
New Member
Tommaso
Join Date: Jan 2020
Posts: 16
Rep Power: 6 |
Hi,
Does solids4foam-v2.0 support compressible flow solvers? Thanks! |
|
February 14, 2023, 05:07 |
|
#13 | |
Super Moderator
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,089
Rep Power: 34 |
Quote:
*disclaimer: I have not done this but I am happy to advise! |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to use the CFX periodic interface | zhihuawan | CFX | 61 | January 15, 2018 16:20 |
Question about adaptive timestepping | Guille1811 | CFX | 25 | November 12, 2017 17:38 |
Problem with an old Simulation | FrankW | CFX | 3 | February 8, 2016 04:28 |
Need advice for compressible fluid simulation | houkensjtu | OpenFOAM Running, Solving & CFD | 0 | February 2, 2014 07:15 |
Problem Interface Solid Fluid with wall velocity Solver v12 | hills1 | CFX | 2 | October 12, 2009 05:36 |