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 Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By Krapf

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 17, 2020, 19:55
Default Updating pointMotionU* to version 8
  #1
Member
 
Franco Marra
Join Date: Mar 2009
Location: Napoli - Italy
Posts: 64
Rep Power: 13
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, 05:52
Default
  #2
Member
 
Join Date: Oct 2017
Posts: 59
Rep Power: 5
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, 13:06
Default
  #3
Member
 
Franco Marra
Join Date: Mar 2009
Location: Napoli - Italy
Posts: 64
Rep Power: 13
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

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[IHFOAM] The IHFOAM Thread Phicau OpenFOAM Community Contributions 345 October 16, 2020 02:52
different results form openfoam 3.0.1 to 1912 yuno OpenFOAM Running, Solving & CFD 0 September 28, 2020 04:09
Turbulent flow around a cylinder with pimpleFoam Nazim OpenFOAM Running, Solving & CFD 2 May 19, 2020 07:58
Sudden contration MrAndersDk OpenFOAM Running, Solving & CFD 30 October 11, 2018 04:23
libz.so.1: no version information available dmaz OpenFOAM Running, Solving & CFD 3 January 4, 2015 17:54


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