Skip to content
Snippets Groups Projects
surfaceFieldValue.C 27.6 KiB
Newer Older
  • Learn to ignore specific revisions
  •         if (operation_ != opNone && Pstream::master())
    
        // Many operations use the Sf field
        vectorField Sf;
    
                const polySurface& s = dynamicCast<const polySurface>(obr());
    
            }
        }
    
        // Faces and points for surface format (if specified)
        faceList faces;
        pointField points;
    
        if (surfaceWriterPtr_.valid())
        {
    
                combineMeshGeometry(faces, points);
    
                combineSurfaceGeometry(faces, points);
    
            }
        }
    
        // Only a few weight types (scalar, vector)
    
            if (validField<scalar>(weightFieldName_))
            {
    
                writeAll(Sf, weightField, points, faces);
    
            }
            else if (validField<vector>(weightFieldName_))
            {
    
                writeAll(Sf, weightField, points, faces);
    
                FatalErrorInFunction
                    << "weightField " << weightFieldName_
                    << " not found or an unsupported type"
                    << abort(FatalError);
    
        else
        {
            // Default is a zero-size scalar weight field (ie, weight = 1)
            scalarField weightField;
    
            // Process the fields
    
            writeAll(Sf, weightField, points, faces);
    
        if (operation_ != opNone && Pstream::master())
    
    void Foam::functionObjects::fieldValues::surfaceFieldValue::updateMesh
    (
        const mapPolyMesh& mpm
    )
    {
        needsUpdate_ = true;
    }
    
    
    void Foam::functionObjects::fieldValues::surfaceFieldValue::movePoints
    (
        const polyMesh& mesh
    )
    {
        needsUpdate_ = true;
    }
    
    
    
    // ************************************************************************* //