|
[Sponsors] | |||||
|
|
|
#1 |
|
New Member
Richard
Join Date: Aug 2013
Location: Zilina, Slovakia
Posts: 20
Rep Power: 14 ![]() |
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]);
....
Code:
mylaplacianFoam.C:(.text.startup+0x1f95): undefined reference to `Foam::convectiveValueFvPatchField<double>::typeName' collect2: ld returned 1 exit status any Idea what is wrong? ![]() Thanks Richard |
|
|
|
|
|
|
|
|
#2 | |
|
Senior Member
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,269
Blog Entries: 1
Rep Power: 26 ![]() |
besides library path you should name library binary file which you want to add in the section
Quote:
__________________
My Personal Website (http://nimasamkhaniani.ir/) Telegram channel (https://t.me/cfd_foam) |
||
|
|
|
||
|
|
|
#3 |
|
New Member
Richard
Join Date: Aug 2013
Location: Zilina, Slovakia
Posts: 20
Rep Power: 14 ![]() |
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
|
|
|
|
|
|
|
|
|
#4 |
|
Senior Member
Joachim Herb
Join Date: Sep 2010
Posts: 650
Rep Power: 23 ![]() |
Try:
Code:
EXE_LIBS = -lfiniteVolume \
-L$(FOAM_USER_LIBBIN) \
-lconvectiveValue
|
|
|
|
|
|
|
|
|
#5 |
|
New Member
Richard
Join Date: Aug 2013
Location: Zilina, Slovakia
Posts: 20
Rep Power: 14 ![]() |
It works, thank You very much!
|
|
|
|
|
|
|
|
|
#6 |
|
New Member
Richard
Join Date: Aug 2013
Location: Zilina, Slovakia
Posts: 20
Rep Power: 14 ![]() |
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> > > Thanks Richard ![]() Solved: bad generic types... Last edited by Ricardo; September 19, 2013 at 13:32. |
|
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| access boundary condition from solver | pascool | OpenFOAM Programming & Development | 2 | April 30, 2015 09:39 |
| Question about heat transfer coefficient setting for CFX | Anna Tian | CFX | 1 | June 16, 2013 07:28 |
| An error has occurred in cfx5solve: | volo87 | CFX | 5 | June 14, 2013 18:44 |
| ATTENTION! Reliability problems in CFX 5.7 | Joseph | CFX | 14 | April 20, 2010 16:45 |
| Rotating interpolated boundary condition | hani | OpenFOAM Running, Solving & CFD | 0 | July 4, 2006 08:09 |