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

fvOptions inside chtMultiRegionSimpleFoam solver (version 2.2)

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 20, 2014, 05:30
Default fvOptions inside chtMultiRegionSimpleFoam solver (version 2.2)
  #1
Member
 
Vitor Vasconcelos
Join Date: Jan 2012
Posts: 33
Rep Power: 14
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.

Code:
{
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        );
9

10        hEqn.relax();
11

12        fvOptions.constrain(hEqn);
13

14        hEqn.solve();
15

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.

Vitor
vitors is offline   Reply With Quote

Old   May 21, 2014, 14:51
Default
  #2
Senior Member
 
Alex
Join Date: Oct 2013
Posts: 337
Rep Power: 22
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!

Regards,

Alex
__________________
Web site where I present my Master's Thesis: foamingtime.wordpress.com

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

Reply

Tags
chtmultiregionsimplefoam, fvoptions, solvesolid, thermophysical model


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


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