CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM

compiling new boundary

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

LinkBack Thread Tools Display Modes
Old   October 13, 2009, 06:43
Default compiling new boundary
New Member
Join Date: Oct 2009
Posts: 1
Rep Power: 0
mcgyver2k9 is on a distinguished road

i'm new here and also quite new to openfoam and CFD in general.

what i want to do:
Simulate a steel pipe with hot air flow inside and air around it to figure out the thermal stress of this pipe.

how i tried:
I reduced it to a 2D Problem and want to simulate just the solid body. I'm not interested what happens to the air, so my plan was to use a boundary contition that calculates the heat flow on the solid surface by the temperature difference and the heattransfercoefficient. The temperature of the air can be a constant. I picked solidDisplacementFoam to solve the problem and it works fine with fixedValue or fixedGradient boundarys fo the temperature. I dit not find any boundary condition that exactly fits my problem, so i tried to modify fixedGradient which leads to...

the problem:
I tried to copy fixedGradient to a new folder, renamed anything in the files from fixedGradient to surfaceConvection and compile it. This dit not work. Then i tried to compile the original code with the same result.

here are the error messages:

surfaceConvectionFvPatchField.C:42: error: redefinition of 'Foam::surfaceConvectionFvPatchField<type>::surfac eConvectionFvPatchField(const Foam::fvPatch&, const FOAM:imensionedField<Type, Foam::volMesh>&)'

surfaceConvectionFvPatchField.C:42: error: 'Foam::surfaceConvectionFvPatchField<type>::surfac eConvectionFvPatchField(const Foam::fvPatch&, const FOAM:imensionedField<Type, Foam::volMesh>&)' previosly declared here

and this comes for every of these blocks (constructors if i transfered my java knowledge correcttly to c++)

Has anybody an idea what im doing wrong?

thanks for listening
mcgyver2k9 is offline   Reply With Quote


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
Implementation of boundary conditions for FVM Tom Main CFD Forum 7 August 26, 2014 05:58
Defining "Neutral" boundary conditions? (force=0) MW FLUENT 5 October 5, 2009 04:55
Boundary conditions? Tom Main CFD Forum 0 November 5, 2002 02:54
Boundary Layer Flow Paradox Wen Long Main CFD Forum 3 September 24, 2002 08:47
Boundary Conditions Jan Ramboer Main CFD Forum 11 August 16, 1999 08:59

All times are GMT -4. The time now is 00:40.