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

New boundary condition in solver

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

Like Tree1Likes
  • 1 Post By jherb

Reply
 
LinkBack Thread Tools Display Modes
Old   September 2, 2013, 12:15
Default New boundary condition in solver
  #1
New Member
 
Richard
Join Date: Aug 2013
Location: Zilina, Slovakia
Posts: 20
Rep Power: 3
Ricardo is on a distinguished road
Hello, I have new boundary condition "convectiveValue" based on fixedValue condition.

I would like use this code in my solver
Code:
 if(T.boundaryField()[patchID1].type() == convectiveValueFvPatchScalarField::typeName)
    {convectiveValueFvPatchScalarField& tValue = refCast<convectiveValueFvPatchScalarField>(T.boundaryField()[patchID1]);
....
I get error message

Code:
 mylaplacianFoam.C:(.text.startup+0x1f95): undefined reference to `Foam::convectiveValueFvPatchField<double>::typeName'
collect2: ld returned 1 exit status
I have #include "convectiveValueFvPatchFields.H" in solver file and link to header in Make/options

any Idea what is wrong?
Thanks
Richard
Ricardo is offline   Reply With Quote

Old   September 3, 2013, 00:17
Default
  #2
Senior Member
 
Nima Sam
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,066
Blog Entries: 1
Rep Power: 14
nimasam is on a distinguished road
Send a message via Yahoo to nimasam
besides library path you should name library binary file which you want to add in the section
Quote:
EXE_LIBS
__________________
Training Course on OpenFOAM at (http://www.isme.ir/)
My Weblog (http://openfoam.blogfa.com/)
nimasam is offline   Reply With Quote

Old   September 3, 2013, 03:08
Default
  #3
New Member
 
Richard
Join Date: Aug 2013
Location: Zilina, Slovakia
Posts: 20
Rep Power: 3
Ricardo is on a distinguished road
I added it, but nothing changed..

Code:
EXE_INC = -I$(LIB_SRC)/finiteVolume/lnInclude\
        -I$(FOAM_RUN)/Newton/ 
    
EXE_LIBS = -lfiniteVolume \
            -L$(FOAM_USER_LIBBIN)/libconvectiveValue.so
Ricardo is offline   Reply With Quote

Old   September 3, 2013, 09:04
Default
  #4
Senior Member
 
Joachim Herb
Join Date: Sep 2010
Posts: 206
Rep Power: 9
jherb is on a distinguished road
Try:
Code:
    
EXE_LIBS = -lfiniteVolume \
            -L$(FOAM_USER_LIBBIN) \
            -lconvectiveValue
(under the assumption that your library is called libconvectiveValue.so and resides in $FOAM_USER_LIBBIN)
nimasam likes this.
jherb is offline   Reply With Quote

Old   September 3, 2013, 13:20
Default
  #5
New Member
 
Richard
Join Date: Aug 2013
Location: Zilina, Slovakia
Posts: 20
Rep Power: 3
Ricardo is on a distinguished road
It works, thank You very much!
Ricardo is offline   Reply With Quote

Old   September 4, 2013, 06:27
Default
  #6
New Member
 
Richard
Join Date: Aug 2013
Location: Zilina, Slovakia
Posts: 20
Rep Power: 3
Ricardo is on a distinguished road
Hello, I have a little question about using interpolationTable. I would like using data measured data ("$FOAM_CASE/constant/sample.dat") for calculating of BC. I tried various combination of constructors, but without succes.

Code:
interpolationTable<List<Tuple2<scalar,scalar> > >
Would you be so kind and give me a sample of code for interpolating scalar value from file?

Thanks
Richard


Solved: bad generic types...

Last edited by Ricardo; September 19, 2013 at 12:32.
Ricardo 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
Question about heat transfer coefficient setting for CFX Anna Tian CFX 1 June 16, 2013 06:28
An error has occurred in cfx5solve: volo87 CFX 5 June 14, 2013 17:44
access boundary condition from solver pascool OpenFOAM Programming & Development 1 April 1, 2013 16:33
ATTENTION! Reliability problems in CFX 5.7 Joseph CFX 14 April 20, 2010 15:45
Rotating interpolated boundary condition hani OpenFOAM Running, Solving & CFD 0 July 4, 2006 07:09


All times are GMT -4. The time now is 04:38.