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

Updating pointMotionU* to version 8

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Krapf

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 17, 2020, 18:55
Default Updating pointMotionU* to version 8
  #1
Member
 
Franco Marra
Join Date: Mar 2009
Location: Napoli - Italy
Posts: 69
Rep Power: 17
francescomarra is on a distinguished road
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);
          #};
    }
It worked perfectly but now, moving to version 8, it does not work anymore. I get the following error:

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
Line 26 is the line starting with the keyword "type codedFixedValue" of the listing reported. I understand that the syntax has been changed in the new version but I was not able to find information about the new syntax.
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
francescomarra is offline   Reply With Quote

Old   October 18, 2020, 04:52
Default
  #2
Senior Member
 
Join Date: Oct 2017
Posts: 124
Rep Power: 8
Krapf is on a distinguished road
You need to replace "redirectType" with "name". See: https://cpp.openfoam.org/v8/classFoa...d.html#details
francescomarra likes this.
Krapf is offline   Reply With Quote

Old   October 18, 2020, 12:06
Default
  #3
Member
 
Franco Marra
Join Date: Mar 2009
Location: Napoli - Italy
Posts: 69
Rep Power: 17
francescomarra is on a distinguished road
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
francescomarra is offline   Reply With Quote

Reply


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
[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


All times are GMT -4. The time now is 22:11.