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

void Foam::multiphaseSystem::solve() of multiphaseEulerFoam solver

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 16, 2013, 14:13
Default void Foam::multiphaseSystem::solve() of multiphaseEulerFoam solver
  #1
Senior Member
 
Join Date: Jan 2012
Posts: 166
Rep Power: 14
maybee is on a distinguished road
hi,

within method solve() can be found:

Code:
...
const dictionary& pimpleDict = mesh_.solutionDict().subDict("PIMPLE"); 
...
where mesh_ is
Code:
const fvMesh& mesh_
, a reference to the fvMesh object mesh

and solutionDict() [Return the selected sub-dictionary of solvers if the "select"
keyword is given, otherwise return the complete dictionary.] :

Code:
const Foam::dictionary& Foam::solution::solutionDict() const 
  344 {
  345     if (found("select"))
  346     {
  347         return subDict(word(lookup("select")));
  348     }
  349     else
  350     {
  351         return *this;
  352     }
  353 }
with method found("select") -> ?

and

subDict("PIMPLE") [Find and return a sub-dictionary for manipulation.]

Code:
Foam::dictionary& Foam::dictionary::subDict(const word& keyword)
  617 {
//lookupEntryPtr(...):
//Find and return an entry data stream pointer for manipulation if present otherwise return //NULL. If recursive, search parent dictionaries. If patternMatch, use regular expressions.
  618     entry* entryPtr = lookupEntryPtr(keyword, false, true);
  619 
  620     if (entryPtr == NULL)
  621     {
  622         FatalIOErrorIn
  623         (
  624             "dictionary::subDict(const word& keyword)",
  625             *this
  626         )   << "keyword " << keyword << " is undefined in dictionary "
  627             << name()
  628             << exit(FatalIOError);
  629     }
  630     return entryPtr->dict();
  631 }
I have several quesiton about this:

1A. mesh_ is a reference to the fvMesh which consists of many subobjects. When calling method solutionDict() on mesh_ what is method found("select") actually doing and if it is searching for the word "select" where in fvMesh mesh it is searching for it?

1B. Method solutionDict() : What is exactly meant by the "select" keyword? solutionDict() does not get any input parameters and therefore I assume it is really searched for a dictionary called "select"...

2. Assumed method solutionDict() returns the reference to mesh, hence mesh_ (see line 349 to 351 second code snippet) method subDict("PIMPLE") afterwards searches for a dictionary called "PIMPLE" in fvMesh mesh?

Perhaps I am misinterpreting something here? I hope someone enlightens me .

greetings
maybee
maybee is offline   Reply With Quote

Old   November 5, 2017, 10:11
Default
  #2
New Member
 
rik houthuys
Join Date: Jan 2017
Posts: 27
Rep Power: 9
Houthuys is on a distinguished road
Hello Maybee,

Did you find answers for your questions here?
Houthuys is offline   Reply With Quote

Old   November 5, 2017, 12:30
Default
  #3
Senior Member
 
Join Date: Jan 2012
Posts: 166
Rep Power: 14
maybee is on a distinguished road
Hi,

I am not sure since I worked with the solver a long time ago, but I don t think I could get any answers to these questions.

Best Regards
maybee is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Sliding Interface issues philippose OpenFOAM Running, Solving & CFD 7 May 5, 2014 04:13
Unexplained Error during Solver Runs cfb CFX 6 November 9, 2012 16:42
Quarter Burner mesh with periosic condition SamCanuck FLUENT 2 August 31, 2011 12:34
Working directory via command line Luiz CFX 4 March 6, 2011 21:02
why the solver reject it? Anyone with experience? bearcat CFX 6 April 28, 2008 15:08


All times are GMT -4. The time now is 07:18.