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

Compiling a custion Boundary Condition

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 1 Post By JimKnopf
  • 1 Post By chegdan
  • 1 Post By JimKnopf

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   March 21, 2013, 11:26
Default Compiling a custion Boundary Condition
  #1
Member
 
Jim Knopf
Join Date: Dec 2010
Posts: 60
Rep Power: 15
JimKnopf is on a distinguished road
Hello Everyone,

i got a problem that i don't understand.

What I want:
A custom BC derived from fixedGradientFvPatchField

What I tried:
Copy the original source code an replace fixedGradientFvPatchField with hTCFvPatchField in the filenames and in the files.
Added a Make directory with files:
Code:
hTCFvPatchField.C

LIB = $(FOAM_USER_LIBBIN)/libmyBCs
and options:
Code:
EXE_INC = \
        -I$(FOAM_SRC)/finiteVolume/lnInclude

LIB_LIBS =
Unfortunatly this results in a compiling error:
Code:
hTCFvPatchField.C:37:1: error: redefinition of 'Foam::hTCFvPatchField<Type>::hTCFvPatchField(const Foam::fvPatch&, const Foam::DimensionedField<Type, Foam::volMesh>&)'
hTCFvPatchField.C:37:1: error: 'Foam::hTCFvPatchField<Type>::hTCFvPatchField(const Foam::fvPatch&, const Foam::DimensionedField<Type, Foam::volMesh>&)' previously declared here
hTCFvPatchField.C:49:1: error: redefinition of 'Foam::hTCFvPatchField<Type>::hTCFvPatchField(const Foam::hTCFvPatchField<Type>&, const Foam::fvPatch&, const Foam::DimensionedField<Type, Foam::volMesh>&, const Foam::fvPatchFieldMapper&)'
and so forth for every method.

What did I do wrong?
I tried the same workflow with the original code and got the same result ?!?

I would be glad abount any idea.

Greets
Jim
JimKnopf is offline   Reply With Quote

 


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
Periodic Boundary Condition C.C Main CFD Forum 24 November 6, 2016 08:02
Domain Imbalance HMR CFX 5 October 10, 2016 05:57
Opening Boundary Condition andreachan Main CFD Forum 11 March 19, 2013 16:46
Setting outlet Pressure boundary condition using CAFFA code Mukund Pondkule Main CFD Forum 0 March 16, 2011 03:23
How exactly the "pressure outlet" bdry condition compute properties on the boundary? yating9901 FLUENT 3 June 28, 2010 12:26


All times are GMT -4. The time now is 19:02.