|
[Sponsors] |
![]() |
![]() |
#1 |
Member
Franco Marra
Join Date: Mar 2009
Location: Napoli - Italy
Posts: 69
Rep Power: 17 ![]() |
Dear Foamers,
I have used up to version 5 the following specification of a moving boundary wall with sinusoidal motion in the file "0/pointMotionUz": Code:
botCyl1 { type codedFixedValue; value uniform 0; redirectType rampedFixedValuebotCyl1; code #{ const scalar Amp1 = 0.344160362081775; const scalar Fre1 = 0.043410049625417; const scalar PiGr = 3.141592653589793; const scalar beta = PiGr/2; scalar Uz1=Amp1*sin((2.0*PiGr*this->db().time().value()+beta)/Fre1); operator==(Uz1); #}; } Code:
--> FOAM FATAL IO ERROR: keyword name is undefined in dictionary "/data/home/marra/OpenFOAM/marra-8/run/test/0/pointMotionUz/boundaryField/botCyl1" file: /data/home/marra/OpenFOAM/marra-8/run/test/0/pointMotionUz/boundaryField/botCyl1 from line 26 to line 29. From function const Foam::entry& Foam::dictionary::lookupEntry(const Foam::word&, bool, bool) const in file db/dictionary/dictionary.C at line 802. FOAM exiting Please, can you help me by indicating where I can find examples or docs about the correct new syntax or by giving me some hints to correct the code? Thank you in advance, Franco |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
Join Date: Oct 2017
Posts: 124
Rep Power: 8 ![]() |
You need to replace "redirectType" with "name". See: https://cpp.openfoam.org/v8/classFoa...d.html#details
|
|
![]() |
![]() |
![]() |
![]() |
#3 |
Member
Franco Marra
Join Date: Mar 2009
Location: Napoli - Italy
Posts: 69
Rep Power: 17 ![]() |
Dear Krapf,
thank you so much! I made it to work again. Also important was your suggestion about the right entry in the documentation. It helped me to figure out how to search. My best regards, Franco |
|
![]() |
![]() |
![]() |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[IHFOAM] The IHFOAM Thread | Phicau | OpenFOAM Community Contributions | 392 | September 8, 2023 18:10 |
different results form openfoam 3.0.1 to 1912 | yuno | OpenFOAM Running, Solving & CFD | 0 | September 28, 2020 03:09 |
Turbulent flow around a cylinder with pimpleFoam | Nazim | OpenFOAM Running, Solving & CFD | 2 | May 19, 2020 06:58 |
Sudden contration | MrAndersDk | OpenFOAM Running, Solving & CFD | 30 | October 11, 2018 03:23 |
libz.so.1: no version information available | dmaz | OpenFOAM Running, Solving & CFD | 3 | January 4, 2015 16:54 |