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

Merge solvers

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 2 Post By marupio
  • 1 Post By elvis

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 1, 2012, 13:42
Default Merge solvers
  #1
Senior Member
 
lore
Join Date: Mar 2010
Location: Italy
Posts: 460
Rep Power: 18
lovecraft22 is on a distinguished road
Send a message via Skype™ to lovecraft22
Hi all;
I know openFoam has a lot of solvers for different situations (MRF, moving meshes, multiphase and so on).

Let's say I have a case which includes many of the above mentioned situations, so I may have a moving mesh, a MRF, many phases, combustion, chemical reactions and so on (of course I'm just speculating).

Now, how could I solve such a case? Maybe there's the possibility to merge "single situations" solvers into a multiple situations unique solver?

Thank you!
lovecraft22 is offline   Reply With Quote

Old   June 1, 2012, 13:58
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi lovecraft,

Mmm... well, there's this: http://openfoamwiki.net/index.php/Contrib_multiSolver
As for mesh motion, there are few utilities in OpenFOAM just for that, which I saw someone ask about two the other day: moveMesh vs. moveDynamicMesh

But then there is the X factor: for example, taking into account radiation could affect the flow equations, because it would expand the fluid in zones where it was reflected, or modify the viscosity of the fluid. Such an example is that scalarTransportFoam is a nice thing to have, but it doesn't solve how the scalar affects the flow; this is implied on that wiki page How to add temperature to icoFoam:
Quote:
This HOWTO will cover rudimentary methods for altering an existing solver (icoFoam) to solve thermal transport.
Last but not least: have a very nice cluster nearby... the more you try to solve, the longer it will take and more memory it will require.

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   June 1, 2012, 14:05
Default
  #3
Senior Member
 
lore
Join Date: Mar 2010
Location: Italy
Posts: 460
Rep Power: 18
lovecraft22 is on a distinguished road
Send a message via Skype™ to lovecraft22
Thanks Bruno;
mine was just a generic question. I don't need to solve a moving mesh, i just picked some stuff up to make an example as I was wondering how to solve multiple flow features at once.
lovecraft22 is offline   Reply With Quote

Old   June 1, 2012, 14:19
Default
  #4
Senior Member
 
lore
Join Date: Mar 2010
Location: Italy
Posts: 460
Rep Power: 18
lovecraft22 is on a distinguished road
Send a message via Skype™ to lovecraft22
Actually, the superSolver seems to be something different from what I need… it solves one situation, then solves another. Am I correct?

I may need to solve many of them at once… So, let's say, I don't need to move my mesh, than do something else on what happens after my mesh moved… I may need to move the mesh while two fluid mix together for instance…
lovecraft22 is offline   Reply With Quote

Old   June 1, 2012, 21:44
Default
  #5
Senior Member
 
David Gaden
Join Date: Apr 2009
Location: Winnipeg, Canada
Posts: 437
Rep Power: 22
marupio is on a distinguished road
Yeah, you are correct: multiSolver wouldn't be appropriate for this situation. An updated version is on its way, but still won't be suitable.

As for combining solvers... you've run into something that makes OpenFOAM different from other CFD software. Let's say you wanted to simulate a transient flow with bousinesq buoyancy and scalar transport of three different species. In commercial software, you would click the buoyancy button, and add three scalars to the problem. In openFOAM, you cannot solve this problem "out of the box".

I like to think of the "standard solvers" that come with OpenFOAM as templates. They are very well-implemented examples of standard algorithms. If you need a special custom solver, you have to figure out the solvers, and implement your own version. This is easier than you might think because of all the existing examples, and because the top-level code is often human-readable.
Ohbuchi and iamed18 like this.
__________________
~~~
Follow me on twitter @DavidGaden
marupio is offline   Reply With Quote

Old   June 2, 2012, 04:37
Default
  #6
Senior Member
 
lore
Join Date: Mar 2010
Location: Italy
Posts: 460
Rep Power: 18
lovecraft22 is on a distinguished road
Send a message via Skype™ to lovecraft22
Thanks to both of you.

What about the moving mesh? I haven't quite understood if a specific solver is needed (*DyMFoam) or it can be achieved in any solver (ie simpleFoam) using moveMesh or MoveDynamicMesh.
lovecraft22 is offline   Reply With Quote

Old   June 4, 2012, 08:26
Default
  #7
Senior Member
 
Elvis
Join Date: Mar 2009
Location: Sindelfingen, Germany
Posts: 620
Blog Entries: 6
Rep Power: 24
elvis will become famous soon enough
Hi,

what about that "Block-Coupled Solver" (only available in OF1.6-extend) see presentation to find out if it is what you are looking for.
=> slide 25 shows that solver might converge much faster => example 20 iterations (blockcoupled solution) vs. ~200 iterations (segregated solution)
wyldckat likes this.
elvis is offline   Reply With Quote

Old   June 4, 2012, 09:17
Default
  #8
Senior Member
 
lore
Join Date: Mar 2010
Location: Italy
Posts: 460
Rep Power: 18
lovecraft22 is on a distinguished road
Send a message via Skype™ to lovecraft22
Thank you Elvis,
I'll have a look!
lovecraft22 is offline   Reply With Quote

Old   August 22, 2016, 05:28
Default Merging solvers
  #9
New Member
 
Sandip Wadekar
Join Date: Oct 2014
Posts: 17
Rep Power: 11
wadekar is on a distinguished road
Dear Foamers

I want to merge the two solvers- 1: XiFoam or EngineFoam and 2: sprayFoam.
Basically, i want to simulate the combustion process along with fuel injection.
So, is it possible to combine both the solvers ?
someone have previous experience in the same case ? or someone can guide me for this specific case ?
wadekar is offline   Reply With Quote

Old   December 7, 2018, 09:00
Default
  #10
New Member
 
Vinay Vyas
Join Date: Dec 2018
Posts: 1
Rep Power: 0
27vinayvyas is on a distinguished road
Dear Foamers

I want to merge the two solvers- 1: interTrackFoam and 2: rhoCentralFoam.
Basically, i want to make a solver for compressible flow (rhoCentralFoam) whit a moving mesh in ALE fashion(interTrackFoam).
So please if anybody could help.
someone have previous experience in the same case ? or someone can guide me for this specific case ?
wadekar is offline
27vinayvyas is offline   Reply With Quote

Old   December 9, 2021, 05:50
Default
  #11
New Member
 
Emre
Join Date: Sep 2020
Posts: 7
Rep Power: 5
emrebnc is on a distinguished road
Hello, have you been able to find a solution for this?

Thank you.

"Dear Foamers

I want to merge the two solvers- 1: interTrackFoam and 2: rhoCentralFoam.
Basically, i want to make a solver for compressible flow (rhoCentralFoam) whit a moving mesh in ALE fashion(interTrackFoam).
So please if anybody could help.
someone have previous experience in the same case ? or someone can guide me for this specific case ?
wadekar is offline"

Last edited by emrebnc; December 9, 2021 at 05:51. Reason: replying to this message
emrebnc is offline   Reply With Quote

Old   December 9, 2021, 08:29
Default
  #12
New Member
 
Paulin FERRO
Join Date: May 2021
Location: France
Posts: 21
Rep Power: 4
pferro is on a distinguished road
I would start from compressibleInterFoam and add the tracking method from interTrackFoam. But maybe it's harder than I think.

PF
pferro 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
Possible turbulence modelling bug in SRF solvers otm OpenFOAM Running, Solving & CFD 3 May 29, 2012 04:03
Reaction solvers megacrout OpenFOAM 5 July 8, 2011 10:54
assemble the mesh feixiangniao ANSYS Meshing & Geometry 2 March 20, 2010 02:39
about merge mesh lian Main CFD Forum 3 February 29, 2008 10:47
network comms amg solvers bob Main CFD Forum 0 March 1, 2007 19:58


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