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

Find patch-type

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

Reply
 
LinkBack Thread Tools Display Modes
Old   July 26, 2012, 07:49
Default Find patch-type
  #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 together,

I wanna find a patch type while initializing the thermodynamics:

Therefor I can find patches with FixedValues like:

Code:
        forAll(T_.boundaryField(), patchi)

        {

                if (isA<fixedValueFvPatchScalarField>(T_.boundaryField()[patchi]))
                {
                        Info << "Patch Fixed Temperature " << patchi << endl;
                        patch_type.push_back(1);
                }
             }
Now I wanna find the patchtype "wallHeatTransfer". I did it like befor:
Code:
        forAll(T_.boundaryField(), patchi)

        {

                Info << <fixedValueFvPatchScalarField>T_.boundaryField()[patchi] << endl;

                if (isA<fixedValueFvPatchScalarField>(T_.boundaryField()[patchi]))
                {
                        Info << "Patch Fixed Temperature " << patchi << endl;
                        patch_type.push_back(1);
                }
              else if (isA<wallHeatTransferFvPatchScalarField>(T_.boundaryField()[patchi]))
              {
                      Info << "Patch wallHeatTransfer " << patchi << endl;
                      patch_type.push_back(2);
              }
But I get an eerror while compiling, that <wallHeatTransferFvPatchScalarField> is not defined.

Well is there an lnInclude file missing?

Tobi
Tobi is offline   Reply With Quote

Old   July 26, 2012, 07:58
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
I solved my problem while writing the threat.

There was a lnInclude File missing .)
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
second order schemes marine OpenFOAM 66 October 26, 2014 12:10
Air Conditioned room groovyBC Sebaj OpenFOAM 7 October 31, 2012 15:16
Fluent3DMeshToFoam simvun OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ... 48 May 14, 2012 05:20
Need help with boundary conditions: open to atmosphere Wolle OpenFOAM 2 April 11, 2011 07:32
Pressure instability with rhoSimpleFoam daniel_mills OpenFOAM Running, Solving & CFD 44 February 17, 2011 18:08


All times are GMT -4. The time now is 05:36.