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

Finding calculation of T_ field

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

Reply
 
LinkBack Thread Tools Display Modes
Old   July 27, 2012, 09:02
Default Finding calculation of T_ field
  #1
Senior Member
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Leoben (Austria)
Posts: 1,100
Blog Entries: 6
Rep Power: 19
Tobi will become famous soon enough
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Hi all,

I want to implement the wallHeatFlux BC for the T-Field in my solver. For now I can use the BC but the calculation of the T faces of the boundary is not working. I get still the values of the initial Temperature (its like i have a fixedValue BC).

How do I test the values of the T_ faces?
After calculate of hEqn.H there is the thermo.correct() code.
I had a look at the correct function and there I found that:
Code:
template<class MixtureType>
void Foam::hPdfThermo<MixtureType>::correct()
{
        // force the saving of the old-time values
        psi_.oldTime();

        if (counter == propertyUpdate)
        {
                Info << "Updating look-up table extractions..." << endl;
                update();
                counter = 0;
        }

        if (counter_mass_fractions == massFractionsUpdate)
        {
                Info << "Updating mass fraction extractions..." << endl;
                updateMassFractions();
                counter_mass_fractions = 0;
        }


        Debug();        // added by myself

        calculate();

        counter++;
        counter_mass_fractions++;
}
And in the Debug-Function I am getting the face-values:

Code:
template<class MixtureType>
void Foam::hPdfThermo<MixtureType>::Debug()
{
        Info << "Debug" << endl;


        forAll(csi_.boundaryField(), patchi)
        {
                if(isA<wallHeatTransferFvPatchScalarField>(T_.boundaryField()[patchi]))   
                {
                        const fvPatchScalarField & pcsi = csi_.boundaryField()[patchi];
                        const fvPatchScalarField & pT   = T_.boundaryField()[patchi];

                        forAll(pcsi, facei)
                        {
                                Info << "T = " << pT[facei] << endl;
                        }
                }
        }
}
Now my question is, how can I figure out why the BC wallHeatTransfer is not working, or is it working and I made some errors?
Normally I should get different values of the face-values (or not?) ...

And if I get the enthalpy equation. Where is the solver solving the temperature eqn or calculate it from the enthalpy?


Tobi
Tobi is offline   Reply With Quote

Old   July 27, 2012, 09:38
Default
  #2
Senior Member
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Leoben (Austria)
Posts: 1,100
Blog Entries: 6
Rep Power: 19
Tobi will become famous soon enough
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Hi,

its me again. I find it out. There is no calculation of the scalar T field.
Well ... thanks for readying.

Tobi
Tobi 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
Starting field averaging using libFunctionObject after certain time eelcovv OpenFOAM Programming & Development 22 November 19, 2014 09:53
how to impose fixed value at a point (or region) during calculation ? Cyp OpenFOAM Programming & Development 25 February 29, 2012 03:42
Phase field: calculation of the |grad f| div(grad f/|grad f|) term Alucard OpenFOAM 0 November 2, 2011 10:44
Need help evaluating field by interpolation with a "lookup table" JohnRHawk OpenFOAM Programming & Development 2 June 28, 2011 13:27
problems after decomposing for running alessio.nz OpenFOAM 5 April 20, 2011 08:44


All times are GMT -4. The time now is 12:44.