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

Find patch-type

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 26, 2012, 08:49
Default Find patch-type
  #1
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Tussenhausen
Posts: 2,708
Blog Entries: 6
Rep Power: 51
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
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, 08:58
Default
  #2
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Tussenhausen
Posts: 2,708
Blog Entries: 6
Rep Power: 51
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
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 Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
second order schemes marine OpenFOAM 67 April 11, 2022 19:19
[Commercial meshers] Fluent3DMeshToFoam simvun OpenFOAM Meshing & Mesh Conversion 50 January 19, 2020 16:33
[swak4Foam] Air Conditioned room groovyBC Sebaj OpenFOAM Community Contributions 7 October 31, 2012 15:16
Need help with boundary conditions: open to atmosphere Wolle OpenFOAM 2 April 11, 2011 08: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 06:33.