CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM

MULESImplicit fvSolution syntax in OF-1.6 (or 1.6.x)

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

Reply
 
LinkBack Thread Tools Display Modes
Old   August 10, 2009, 11:05
Default MULESImplicit fvSolution syntax in OF-1.6 (or 1.6.x)
  #1
New Member
 
Sean McIntyre
Join Date: Mar 2009
Location: State College, PA
Posts: 11
Rep Power: 8
sean_mcintyre is on a distinguished road
Hi,
Has anyone managed to use MULESImplicit (like a modified interFoam, or similar) in OF-1.6? I had it working in the previous version, and now it gives me errors like solver not found, etc. A sample fvSolution file that works on 1.6 for MULESImplicit would be great.
Thanks,
Sean McIntyre
sean_mcintyre is offline   Reply With Quote

Old   September 29, 2009, 11:26
Default
  #2
Member
 
Sachin Kanetkar
Join Date: Mar 2009
Posts: 57
Rep Power: 8
sachin is on a distinguished road
Hi
Even I am facing the same problem?
Have you found the solution ...I m sorry my c++ knowledge is limited...
I understood there was change by looking into MULES template file but could not understand how to update the fvSolution files
Thanks
Sachin
sachin is offline   Reply With Quote

Old   November 3, 2009, 13:43
Default MULESImplicit
  #3
Member
 
Hamed Aghajani
Join Date: Mar 2009
Location: London, UK
Posts: 77
Rep Power: 8
haghajani is on a distinguished road
Hi all,

Could you find out how the setting of Alpha1 and MULESImplicit as solver should be, in the fvSolution?

Please keep here posted from your findings,

Best regards,
Hamed
haghajani is offline   Reply With Quote

Old   November 9, 2009, 06:11
Default One step forward, perhaps?
  #4
New Member
 
Rickard Bensow
Join Date: Mar 2009
Location: Göteborg, Sweden
Posts: 10
Rep Power: 8
ribe is on a distinguished road
Using the following syntax, the solver does no longer complain on MULESImplicit missing:

alpha1
{
MULESImplicit
{
maxIter 1000;
nLimiterIter 10;
maxUnboundedness 1;
CoCoeff 0.2;
solver PBiCG{ preconditioner DILU; tolerance 1e-10; relTol 0;};
};
}

Instead I get:
keyword solver is undefined in dictionary "/home/ribe/OpenFOAM/ribe-1.6/run/naca15_test_case/system/fvSolution::solver"

Removing the keyword solver from within the MULESImplicit gives:
keyword solver is undefined in dictionary "/home/ribe/OpenFOAM/ribe-1.6/run/naca15_test_case/system/fvSolution::MULESImplicit"

Other tests I've tried yields different error messages.

A possible work around is to change to MULES::explicit in alphaEqn.H and then you don't need a specification for alpha1 in fvSolution. I don't know how this affects the stability of the solver though.

/Rickard
ribe is offline   Reply With Quote

Old   November 9, 2009, 11:01
Default
  #5
New Member
 
Sean McIntyre
Join Date: Mar 2009
Location: State College, PA
Posts: 11
Rep Power: 8
sean_mcintyre is on a distinguished road
That sounds about right. I was getting that same thing.
sean_mcintyre is offline   Reply With Quote

Old   November 9, 2009, 21:18
Default
  #6
Senior Member
 
J. Cai
Join Date: Apr 2009
Posts: 180
Rep Power: 8
chiven is on a distinguished road
Till now, no report about successfully using interPhaseChangeFoam of OF-1.6 occurs. Maybe there is a bug at this point of OF-1.6, but at this time I don't know what and where it is.

Best regards,
Chiven
chiven is offline   Reply With Quote

Old   November 13, 2009, 02:00
Default
  #7
New Member
 
Rickard Bensow
Join Date: Mar 2009
Location: Göteborg, Sweden
Posts: 10
Rep Power: 8
ribe is on a distinguished road
The only real difference I could see is the occurrence of three nested dictionaries in 1.6, instead of only two in 1.5.x, but I can't directly see why this should be a problem.
ribe is offline   Reply With Quote

Old   November 13, 2009, 09:14
Default
  #8
New Member
 
Aurelia Vallier
Join Date: Sep 2009
Posts: 8
Rep Power: 7
AureliaV is on a distinguished road
Hello!
I have the same problem and the same error messages.
The difference from version 5 to 6 in MULESTemplates.C is the definition of
MULEScontrols:

const dictionary& MULEScontrols =
mesh.solverDict(psi.name()).subDict("MULESImplicit");

instead of

dictionary MULESSolver(mesh.solverDict(psi.name()));
const dictionary& MULEScontrols =MULESSolver.subDict("MULESImplicit");

But it does exactly the same thing as before: it reads the dictionnary "MULESImplicit
and I don't see why the following lines yield to an error message in OpenFOAM-1.6!

solve
(
psiConvectionDiffusion + fvc::div(lambda*phiCorr),
MULEScontrols.lookup("solver")
);

It may be a bug?

Aurelia
AureliaV is offline   Reply With Quote

Old   December 4, 2009, 03:26
Default
  #9
Senior Member
 
J. Cai
Join Date: Apr 2009
Posts: 180
Rep Power: 8
chiven is on a distinguished road
Hi, everybody, Henry has revised the MULES, the new MULESTemplates.C file and the updated dambreak case for OF-1.6 are attached.

enjoy,
Chiven
Attached Files
File Type: c MULESTemplates.C (15.1 KB, 67 views)
File Type: zip dambreak.zip (66.0 KB, 44 views)
chiven is offline   Reply With Quote

Old   January 9, 2010, 00:24
Default Kunz's model PK dambreak
  #10
Senior Member
 
Sandy Lee
Join Date: Mar 2009
Posts: 207
Rep Power: 9
sandy is on a distinguished road
Hi Chiven, I can not understand why Kunz's mode can been used to solve the "dambreak" problem....

Are you joking?
sandy is offline   Reply With Quote

Old   January 9, 2010, 01:40
Default
  #11
Senior Member
 
J. Cai
Join Date: Apr 2009
Posts: 180
Rep Power: 8
chiven is on a distinguished road
Hi, Sandy, I don't consider the physical means, only give a setting sample for running the codes of the solver.

Best regards,
Chiven
chiven is offline   Reply With Quote

Old   March 10, 2010, 11:15
Default
  #12
Member
 
G B
Join Date: Mar 2010
Posts: 37
Rep Power: 7
Disco_Caine is on a distinguished road
Where should i change the mulestemplates.c to fix this error:

Code:
keyword MULESImplicit is undefined in dictionary "/home/gustavo/OpenFOAM/gustavo-1.6/Cases/freezeFront/system/fvSolution::solvers::alpha1"

file: /home/gustavo/OpenFOAM/gustavo-1.6/Cases/freezeFront/system/fvSolution::solvers::alpha1 from line 122 to line 130.

    From function dictionary::subDict(const word& keyword) const
    in file db/dictionary/dictionary.C at line 449.

FOAM exiting

Last edited by Disco_Caine; March 10, 2010 at 12:32.
Disco_Caine is offline   Reply With Quote

Old   March 10, 2010, 22:04
Default
  #13
Senior Member
 
Sandy Lee
Join Date: Mar 2009
Posts: 207
Rep Power: 9
sandy is on a distinguished road
Now, I am using OF 1.6.x. This bug has been fixed up. You can revise the file and recompile OF 1.6
sandy is offline   Reply With Quote

Old   March 11, 2010, 05:21
Default
  #14
Member
 
G B
Join Date: Mar 2010
Posts: 37
Rep Power: 7
Disco_Caine is on a distinguished road
Quote:
Originally Posted by sandy View Post
Now, I am using OF 1.6.x. This bug has been fixed up. You can revise the file and recompile OF 1.6
What? I am very new to this, i dont quite follow, but should i just change the new mulestemplates.c for the old ones in the finitevolume folders, and then source the .bashrc file? Would that be enough? I didnt compile OF to begin with, how would i go about doing that?

Really, thank you!
Disco_Caine is offline   Reply With Quote

Old   March 12, 2010, 00:50
Default
  #15
Senior Member
 
Sandy Lee
Join Date: Mar 2009
Posts: 207
Rep Power: 9
sandy is on a distinguished road
If you could not compile OF 1.6, you also can not change the Mulsetemperature.C file. You have to install the OF 1.6.x as like as me, if you really need to use the implicit MUSLE to solve.
sandy is offline   Reply With Quote

Old   March 12, 2010, 03:39
Default
  #16
Member
 
G B
Join Date: Mar 2010
Posts: 37
Rep Power: 7
Disco_Caine is on a distinguished road
Yes, now i understand, i had panicked (i barely got OF-1.6 to work yesterday). Now im compiling OF-1.6.x, lets hope it works. Thank you!
Disco_Caine is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
error while compiling the USER Sub routine CFD user CFX 3 November 25, 2002 16:16


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