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

Translating 'U' file from OpenFOAM 3 to OpenFOAM 5

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 20, 2019, 00:47
Default Translating 'U' file from OpenFOAM 3 to OpenFOAM 5
  #1
Member
 
Saurabh Das
Join Date: Jul 2018
Posts: 38
Rep Power: 3
Sorabh is on a distinguished road
In an older openfoam 3 case file, the 'U' file was written as such:

Code:
dimensions      [0 1 -1 0 0 0 0];

internalField   uniform (0 0 0);

boundaryField
{
    //- Set patchGroups for constraint patches
    #includeEtc "caseDicts/setConstraintTypes"

    outerCylinder
    {
        type            fixedValue;
        value           uniform (0 0 0);
    }

    walls
    {
        type            fixedValue;
        value           uniform (0 0 0);
    }

    "propeller.*"
    {
        type            movingWallVelocity;
        value           uniform (0 0 0);
    }
}
And the case ran perfectly fine. However, with openfoam 5, this is not working. It is asking for a 'patchField entry for innerCylinderSmall' (innerCylinderSmall is a patch which did not need any entry in openfoam 3)

What changes do I need to make in 'U' to make the case compatible with openfoam5?

Thanks.
Sorabh is offline   Reply With Quote

Old   August 23, 2019, 00:13
Default
  #2
Member
 
Saurabh Das
Join Date: Jul 2018
Posts: 38
Rep Power: 3
Sorabh is on a distinguished road
No one to answer this query? I urgently need the solution, I would be very grateful for any help in this matter.
Sorabh is offline   Reply With Quote

Old   August 23, 2019, 01:30
Default
  #3
Senior Member
 
Evren Linda's Avatar
 
Evren Linda
Join Date: Mar 2018
Posts: 112
Rep Power: 3
Evren Linda is on a distinguished road
As you can see in the case: $FOAM_TUTORIALS/incompressible/pimpleDyMFoam/propeller, there are some scripts to run the case, mainly:

Allrun and Allrun.pre.
The script Allrun calls Allrun.pre before running the solver.

So you have first to run Allrun.pre script before running the solver:
Code:
./Allrun.pre
Just if you are curious, take a look to this file [font='Courier New'']Allrun.pre [/font] to see its content.
Evren Linda 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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Other] Adding solvers from DensityBasedTurbo to foam-extend 3.0 Seroga OpenFOAM Community Contributions 9 June 12, 2015 17:18
SparceImage v1.7.x Issue on MAC OS X rcarmi OpenFOAM Installation 4 August 14, 2014 06:42
[swak4Foam] Error bulding swak4Foam sfigato OpenFOAM Community Contributions 18 August 22, 2013 12:41
Version 15 on Mac OS X gschaider OpenFOAM Installation 113 December 2, 2009 10:23
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 17:51


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