Skip to content

SelectionMode geometric requires cellZone name in DarcyForchheimer fvOptions

As described by @Prashant in EP2090 the selectionMode namely geometric can be used within the DarcyForchheimer model but we need also to specify the keyword "cellZone" while specifying a cellZone in addition. This does not make sense and is inconsistent as the cellZone is comming from the geometric selection mode.

Summary

Steps to reproduce

Add an fvOption in such a way:

porousity                                                                       
{                                                                               
    type        explicitPorositySource;                                         
    active      true;                                                           
                                                                                
    explicitPorositySourceCoeffs                                                
    {                                                                           
        type        DarcyForchheimer;                                           
        d           d [0 -2 0 0 0 0 0] (1e12 1e12 1e12);                        
        f           f [0 -1 0 0 0 0 0] (0 0 0);                                 
                                                                                
        coordinateSystem                                                        
        {                                                                       
            origin  (0 0 0);                                                    
            e1      (1 0 0);                                                    
            e2      (0 1 0);                                                    
        }                                                                       
                                                                                
        selectionMode   geometric;                                              
        selection                                                               
        {                                                                       
            box                                                                 
            {                                                                   
                action      use;                                                
                source      box;                                                
                min         (0 -1 -1);                                          
                max         (1 0 1);                                            
            }                                                                   
        }                                                                       
    }                                                                           
}

Example case

Any tutorial case

What is the current bug behaviour?

Selection mode "geometric" requires a cellZone in addition.

What is the expected correct behavior?

Selection mode "geometric" should be usable without specification of a cellZone

Relevant logs and/or images

Environment information

  • OpenFOAM version : v2212
  • Operating system :
  • Hardware info :
  • Compiler :
Edited by Tobias Holzmann