CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Running, Solving & CFD

fvOptions inside chtMultiRegionSimpleFoam solver (version 2.2)

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

LinkBack Thread Tools Display Modes
Old   May 20, 2014, 04:30
Default fvOptions inside chtMultiRegionSimpleFoam solver (version 2.2)
Vitor Vasconcelos
Join Date: Jan 2012
Posts: 33
Rep Power: 7
vitors is on a distinguished road
Dear all,

I've been browsing through some threads asking/explaining how to use fvOptions to add, for example, a heat source to a solid.

Unfortunately I found nothing (and my apologies for opening a new thread if it is there) and since this specific solver has changed a lot on the last versions of OpenFOAM, I need to ask few questions to the experienced foamers.

1    for (int nonOrth=0; nonOrth<=nNonOrthCorr; nonOrth++)
2    {
3        fvScalarMatrix hEqn
4        (
5          - fvm::laplacian(betav*alpha, h, "laplacian(alpha,h)")
6         ==
7            fvOptions(rho, h)
8        );

10        hEqn.relax();

12        fvOptions.constrain(hEqn);

14        hEqn.solve();

16        fvOptions.correct(h);
17    }
This is the solveSolid.H file of chtMultiRegionSimpleFoam.
Lines 7, 12 and 16 are puzzling me.

I know (by reading other threads and OpenFOAM documentation) that in line 7 the fvOptions(rho, h) works as a source-term, assuming the user has set the fvOptions file correctly.

But I'm stucked here. So, is this a volScalarField based in density(???) and enthalpy?

How this impact in the thermophysical model?

Lines 12 and 16 are also a mystery. How fvOptions constrains que equation if I do not set a fvOptions dictionary previously?

Sorry for the bunch of doubts, but former versions of this solver were simpler and I'm struggling to understand the meaning of fvOptions from solver's point of view.

Thank you very much in advance for any clarification.

vitors is offline   Reply With Quote

Old   May 21, 2014, 13:51
Senior Member
Join Date: Oct 2013
Posts: 336
Rep Power: 14
zfaraday will become famous soon enough
I've been having the same doubts as you for some time. Searching for answers in the forum about how to set up a heat source using fvOptions with no luck.

Let's see if we finally see the light!


Web site where I present my Master's Thesis:

The case I talk about in this site was solved with chtMultiRegionSimpleFoam solver and involves radiation. Some basic tutorials are also resolved step by step in the web. If you are interested in these matters, you are invited to come in!
zfaraday is offline   Reply With Quote


chtmultiregionsimplefoam, fvoptions, solvesolid, thermophysical model

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
thobois class engineTopoChangerMesh error Peter_600 OpenFOAM 4 August 2, 2014 09:52
Building a solver with fixedTemperatureConstraint using fvOptions Fluido OpenFOAM Programming & Development 8 February 14, 2014 07:25
Quarter Burner mesh with periosic condition SamCanuck FLUENT 2 August 31, 2011 11:34
meshing F1 front wing Steve FLUENT 0 April 17, 2003 12:37
Setting a B.C using UserFortran in 4.3 tokai CFX 10 July 17, 2001 16:25

All times are GMT -4. The time now is 19:26.