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

First time User fvOptions error OpenFOAM 11

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 1, 2024, 12:22
Exclamation First time User fvOptions error OpenFOAM 11
  #1
New Member
 
Terence
Join Date: May 2024
Posts: 9
Rep Power: 2
tfisherira is on a distinguished road
Code:
--> FOAM FATAL IO ERROR: 
keyword type is undefined in dictionary "/home/OpenFOAM/run/heatedDuct/constant/heater/fvOptions/options"

file: /home/OpenFOAM/run/heatedDuct/constant/heater/fvOptions/options from line 22 to line 33.

    From function const Foam::entry& Foam::dictionary::lookupEntry(const Foam::word&, bool, bool) const
    in file db/dictionary/dictionary.C at line 827.

FOAM exiting
This is the error I receive when trying to run a program from a 3 yr old Heat Transfer tutorial https://youtu.be/Nhhm-ZPxVRc?si=9P15Zi3DpA9oKFSm

Here is my fvOptions file
Code:
 FoamFile                                                                                                                                  
 {                                                                                                                                         
     version     2.0;                                                                                                                      
     format      ascii;                                                                                                                    
     class       dictionary;                                                                                                               
     location    "constant/heater";                                                                                                        
     object      fvOptions;                                                                                                                
 }                                                                                                                                         
 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //                                                           
                                                                                                                                           
 options                                                                                                                                   
 {                                                                                                                                         
     energySource                                                                                                                          
     {                                                                                                                                     
         type            scalarSemiImplicitSource;                                                                                         
         selectionMode   all;                                                                                                              
         volumeMode      specific;                                                                                                         
                                                                                                                                           
         injectionRateSuSp                                                                                                                 
         {                                                                                                                                 
             name h;                                                                                                                       
                                                                                                                                           
             timeStart           0;                                                                                                        
             duration            1;                                                                                                        
             selectionMode       all;                                                                                                      
             explicit            10e7;                                                                                                     
             //implicit          ;{}                                                                                                       
                                                                                                                                           
         }                                                                                                                                 
     }                                                                                                                                     
 }
tfisherira is offline   Reply With Quote

Old   May 2, 2024, 05:38
Default
  #2
Senior Member
 
Tom Fahner
Join Date: Mar 2009
Location: Breda, Netherlands
Posts: 646
Rep Power: 32
tomf will become famous soon enoughtomf will become famous soon enough
Send a message via MSN to tomf Send a message via Skype™ to tomf
Hi,

The error says that the options part does not have a type entry. Probably you have a level of {} too many. Try this:

Code:
FoamFile                                                                                                                                  
{                                                                                                                                         
    version     2.0;                                                                                                                      
    format      ascii;                                                                                                                    
    class       dictionary;                                                                                                               
    location    "constant/heater";                                                                                                        
    object      fvOptions;                                                                                                                
}                                                                                                                                         
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //                                                           
                                                                                                                                           
energySource                                                                                                                          
{                                                                                                                                     
    type            scalarSemiImplicitSource;                                                                                         
    selectionMode   all;                                                                                                              
    volumeMode      specific;                                                                                                         
                                                                                                                                       
    injectionRateSuSp                                                                                                                 
    {                                                                                                                                 
        name h;                                                                                                                       
                                                                                                                                      
        timeStart           0;                                                                                                        
        duration            1;                                                                                                        
        selectionMode       all;                                                                                                      
        explicit            10e7;                                                                                                     
        //implicit          ;{}                                                                                                       
                                                                                                                                      
    }                                                                                                                                 
}
It may then throw a different error, as syntax may have changed in three years.

Hope this helps.
Tom
tomf is offline   Reply With Quote

Old   May 2, 2024, 09:25
Default
  #3
New Member
 
Terence
Join Date: May 2024
Posts: 9
Rep Power: 2
tfisherira is on a distinguished road
Thanks,


That helped to generate a different error. Unfortunately, I am quite inexperienced with openFOAM and have very little idea of what to do next. The number of changes between versions makes it very difficult to learn from scratch.



Here is the new error I receive:


Code:
--> FOAM FATAL IO ERROR: 
Unknown fvModel scalarSemiImplicitSource

Valid fvModels are:

22
(
accelerationSource
actuationDiskSource
buoyancyEnergy
buoyancyForce
coded
effectivenessHeatExchangerSource
explicitPorositySource
heatSource
heatTransfer
interRegionExplicitPorositySource
interRegionHeatTransfer
massSource
phaseLimitStabilisation
radialActuationDiskSource
rotorDisk
semiImplicitSource
sixDoFAccelerationSource
solidEquilibriumEnergySource
solidificationMeltingSource
volumeFractionSource
zeroDimensionalFixedPressure
zeroDimensionalMassSource
)
tfisherira is offline   Reply With Quote

Old   May 2, 2024, 09:38
Default
  #4
Senior Member
 
Tom Fahner
Join Date: Mar 2009
Location: Breda, Netherlands
Posts: 646
Rep Power: 32
tomf will become famous soon enoughtomf will become famous soon enough
Send a message via MSN to tomf Send a message via Skype™ to tomf
Hi,

Indeed some of these changes can be difficult to trace back. However given the name, I guess you should use semiImplicitSource.

The link above will give some more information on the usage as it is implemented in v11. You may need to "translate" your setup to the new syntax.

Good luck,
Tom
tomf is offline   Reply With Quote

Reply

Tags
fvoptions heat source, openfoam 11, scalarsemiimplicitsource, type


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
AMI speed performance danny123 OpenFOAM 21 October 24, 2020 05:13
How to make user routine just be called once in one time step? doublestrong CFX 3 October 22, 2018 00:06
pimpleDyMFoam computation randomly stops babapeti OpenFOAM Running, Solving & CFD 5 January 24, 2018 06:28
pressure in incompressible solvers e.g. simpleFoam chrizzl OpenFOAM Running, Solving & CFD 13 March 28, 2017 06:49
Floating point exception error lpz_michele OpenFOAM Running, Solving & CFD 53 October 19, 2015 03:50


All times are GMT -4. The time now is 17:06.