|
[Sponsors] |
February 26, 2020, 11:13 |
viewFactorModel debug Option and fvSolutions
|
#1 |
New Member
Join Date: Feb 2020
Posts: 5
Rep Power: 6 |
Hey Foamers,
currently I'm trying to handle the viewFactorModel. I adapted the hotRadiationRoomCase and luckily it is running. But still I haven't understood two points. Point 1: In the viewFactor.C file the function initialise() is able to print out some information like "Total number of cluster : " or "Number of coarse faces:"... How do I set it up that they are printed out? It says if (debug), but i already turned debug in the viewFactorDict on so it has to be another one. Point 2: How do I set up the fvSolution file for qr? The only available Tutorial (MultiRegionHeater) has just defined a relaxation factor? Best wishes Nik |
|
March 2, 2020, 04:32 |
|
#2 |
Senior Member
Gerhard Holzinger
Join Date: Feb 2012
Location: Austria
Posts: 342
Rep Power: 28 |
Point 1: The debug-framework in OpenFOAM is controlled via controlDict. So, adding a debug keyword to the viewFactorDict does nothing. See The User Guide. OpenFOAM doesn't read files and interprets its contents; it merely reads specific data from its case-files.
Point 2: There is no need for any settings regarding qr in fvSolution. With the viewFactor model, qr is computed from the viewFactors, the surface temperatures and some material properties. As no governing equations are solved, there is no need for setting anything in fvSolution, with the exception of relaxation factors. This is the benefit of the viewFactor model: compute the viewFactors once in pre-processing, invert the viewFactor matrix in the first time step of the solver, and then compute qr with very little computational effort (compared to fvDOM or P1). |
|
March 2, 2020, 06:19 |
|
#3 |
New Member
Join Date: Feb 2020
Posts: 5
Rep Power: 6 |
Thanks for your reply Gerhard!
Can you tell me which debug switch I have to turn on? I already tried radiationModel but i didn't change anything. And there isn't a special viewFactor switch. Best wishes Nik |
|
March 5, 2020, 04:20 |
|
#4 |
Senior Member
Gerhard Holzinger
Join Date: Feb 2012
Location: Austria
Posts: 342
Rep Power: 28 |
Add this to your controlDict:
Code:
DebugSwitches { viewFactor 1; } If a model defines its own debug-switch, and hot it is named is easy to find out. Check out these lines from the file viewFactor.C Code:
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // namespace Foam { namespace radiationModels { defineTypeNameAndDebug(viewFactor, 0); addToRadiationRunTimeSelectionTables(viewFactor); } } Code:
defineTypeNameAndDebug(viewFactor, 0); The debug-switches we specify in the controlDict, override the default values for the current case. |
|
March 5, 2020, 06:43 |
|
#5 |
New Member
Join Date: Feb 2020
Posts: 5
Rep Power: 6 |
Thanks, it's working!!
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Trying to Generalize fvSolutions file | Focus00000 | OpenFOAM Programming & Development | 9 | March 2, 2020 05:17 |