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

Trying to port dieselFoam to OpenFOAM 3.0

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By wyldckat

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 27, 2015, 05:05
Default Trying to port dieselFoam to OpenFOAM 3.0
  #1
New Member
 
Moritz
Join Date: Nov 2015
Posts: 16
Rep Power: 10
Momo1805 is on a distinguished road
Hey there,

can someone help me how to use the dieselFoam solver in the latest version of OF 30?? I downloaded the ext version so I have the tutorial and all the set ups but I can't the solver to work!

Thanks for your help!
Momo1805 is offline   Reply With Quote

Old   November 27, 2015, 16:28
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
Quick answer: Read this thread: http://www.cfd-online.com/Forums/ope...m-2-1-0-a.html - specially post #7.
wyldckat is offline   Reply With Quote

Old   January 31, 2016, 10:40
Default
  #3
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
Greetings Moritz,

You sent me a PM 16 days ago and only today did I finally manage to take a look into your question. I'll answer on this thread of yours, to keep things in the same topic and public.

Quoting parts of the message you sent me:
Quote:
Originally Posted by Momo1805
[...] currently writing my thesis about an injection process of iso-butan with OpenFoam.

[...] I already have a partially evaporated gas mixture when I am injecting, so my question would be, is there within the sprayFoam or dieselFoam solvers a possibility to perform a multiphase injection?
OK, I'll write down the steps I've taken to figure out some of the details. The remaining details I'll leave them to you.
  1. I went to the "tutorials" folder and looked at the files located inside the tutorial case "lagrangian/sprayFoam/aachenBomb":
    Code:
    tut
    cd lagrangian/sprayFoam/aachenBomb
    cd constant
    gedit *
  2. I looked at all of the opened files and saw this:
    Code:
    //...
    
        compositionModel singlePhaseMixture;
    
        phaseChangeModel liquidEvaporationBoil;
    
    //...
        singlePhaseMixtureCoeffs
        {
            phases
            (
                liquid
                {
                    C7H16               1;
                }
            );
        }
    
        liquidEvaporationBoilCoeffs
        {
            enthalpyTransfer enthalpyDifference;
    
            activeLiquids    ( C7H16 );
        }
    
    //...
  3. I then went to the Github page for the OpenFOAM 3.0.x repository: https://github.com/OpenFOAM/OpenFOAM-3.0.x/
  4. Used the search box at the top of that page and searched for:
    Code:
    compositionModel
  5. Among the results were tutorial cases that used these different lines:
    Code:
    compositionModel singlePhaseMixture;
    compositionModel singleMixtureFraction;
  6. I used the search box again to look for this:
    Code:
    singlePhaseMixture
  7. After finding the main class file:
    Code:
    src/lagrangian/intermediate/submodels/Reacting/CompositionModel/SinglePhaseMixture/SinglePhaseMixture.C
    I clicked on the link and went up two steps on the path, so that I could browse the folders. In other words, I went to this folder:
    Code:
    src/lagrangian/intermediate/submodels/Reacting/CompositionModel
  8. There I found these folders:
    Code:
    CompositionModel
    NoComposition
    SingleMixtureFraction
    SinglePhaseMixture
  9. I then went into the folder "SingleMixtureFraction".
  10. And then opened the file "SingleMixtureFraction.H".
  11. The description states this:
    Code:
    Templated parcel multi-phase, multi-component class
    Therefore, this is essentially what you're looking for.
  12. The initial tutorial case uses a single chemical named "C7H16".
  13. From the first search, the following file has a few more details on how to use the mixture fraction model:
    Code:
    tutorials/lagrangian/reactingParcelFoam/filter/constant/reactingCloud1Properties
Good luck! Best regards,
Bruno
Artur and serles like this.
__________________
wyldckat is offline   Reply With Quote

Old   February 1, 2016, 10:07
Default
  #4
New Member
 
Moritz
Join Date: Nov 2015
Posts: 16
Rep Power: 10
Momo1805 is on a distinguished road
Hey wyldckat,

thanks a lot for you answer! And if I want to use these composition models within sprayFoam, I just compile a new library and include the composition submodels right? Because there are per default not available in sprayFoam.

Greets

Moritz
Momo1805 is offline   Reply With Quote

Old   February 6, 2016, 06:27
Default
  #5
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
Quote:
Originally Posted by Momo1805 View Post
And if I want to use these composition models within sprayFoam, I just compile a new library and include the composition submodels right? Because there are per default not available in sprayFoam.
Quick answer: You only need to create a new library if and only if you need a different method for mixing the particles/fluids.
If you need new compositions, have a look at the tutorial cases that exist in the "tutorials/lagrangian" folder, because it contains a lot of similar cases. Have a look into the files "constant/thermo*".
wyldckat 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
Suggestion for a new sub-forum at OpenFOAM's Forum wyldckat Site Help, Feedback & Discussions 20 October 28, 2014 09:04
[pythonFlu] Can someone tell me more about vulashaka elvis OpenFOAM Community Contributions 21 June 6, 2011 04:05
OpenFOAM 15x MinGW Windows Port gocarts OpenFOAM Installation 1 April 17, 2009 10:41
Port OpenFOAM to IBM Cell BE mgarcia OpenFOAM Installation 2 November 1, 2007 07:33
DieselFoam problem with Brookbs cygwin port leosding OpenFOAM Installation 4 August 12, 2006 04:51


All times are GMT -4. The time now is 10:51.