View Issue Details

IDProjectCategoryView StatusLast Update
0001754OpenFOAMBugpublic2015-06-19 15:49
Reporteruser4Assigned Tohenry  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
PlatformGNU/LinuxOSOpenSuSEOS Version12.3
Summary0001754: surfaceToCell, surfaceToPoint do not allow variable names in surface
DescriptionThe topoSet sources surfaceToCell, pointToCell read a fileName for the surface. This fileName cannot contain any variable names. In attached (contrived) example for the motorBike tutorial it uses

            file "$FOAM_CASE/constant/triSurface/motorBike.obj";

I think there should be an .expand() in the construct-from-dictionary:

    surfName_(fileName(dict.lookup("file")).expand())

Haven't thought about the construct-from-Istream.
Steps To ReproducemotorBike tutorial in combination with attached topoSetDict
TagsNo tags attached.

Activities

user4

2015-06-19 15:36

 

topoSetDict (1,998 bytes)   
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  2.4.0                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    object      topoSetDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

actions
(

    // Select based on surface
    {
        name    c1;
        type    cellSet;
        action  new;
        source surfaceToCell;
        sourceInfo
        {
            file            "$FOAM_CASE/constant/triSurface/motorBike.obj";
            useSurfaceOrientation false;  // use closed surface inside/outside
                                          // test (ignores includeCut,
                                          // outsidePoints)
            outsidePoints   ((-99 -99 -59));    // definition of outside
            includeCut      false;              // cells cut by surface
            includeInside   false;              // cells not on outside of surf
            includeOutside  false;              // cells on outside of surf
            nearDistance    -1;                 // cells with centre near surf
                                                // (set to -1 if not used)
            curvature       0.9;                // cells within nearDistance
                                                // and near surf curvature
                                                // (set to -100 if not used)
        }
    }
);

// ************************************************************************* //
topoSetDict (1,998 bytes)   

henry

2015-06-19 15:49

manager   ~0004973

Resolved by commit 158fc138e9335d324c721f48b83457c7ba500e83

Issue History

Date Modified Username Field Change
2015-06-19 15:36 user4 New Issue
2015-06-19 15:36 user4 File Added: topoSetDict
2015-06-19 15:49 henry Note Added: 0004973
2015-06-19 15:49 henry Status new => resolved
2015-06-19 15:49 henry Resolution open => fixed
2015-06-19 15:49 henry Assigned To => henry