Interface Physics

    • Method Detail

      • create

        PhysicsFeature create​(java.lang.String tag,
                              java.lang.String feature)
        Creates a physics feature.
        Parameters:
        tag - The feature tag.
        feature - The feature type identifier.
        Returns:
        Created physics feature.
      • create

        PhysicsFeature create​(java.lang.String tag,
                              java.lang.String feature,
                              int dim)
        Creates a physics feature.
        Parameters:
        tag - The feature tag.
        feature - The feature type identifier.
        dim - The geometric entity level to assign the feature to.
        Returns:
        Created physics feature.
      • diagram

        com.comsol.model.Diagram diagram()
        Returns the top-level diagram feature container, if any.
        Returns:
        An instance of Diagram or null if the physics interfaces doesn't want or doesn't support diagram visualization.
      • feature

        PhysicsFeatureList feature()
        Returns the physics features.
        Returns:
        Physics features.
      • feature

        PhysicsFeature feature​(java.lang.String tag)
        Returns a physics feature.
        Parameters:
        tag - The feature tag.
        Returns:
        Physics feature.
      • field

        PhysicsFieldList field()
        Returns list of physics fields.
        Returns:
        List of physics fields.
      • field

        PhysicsField field​(java.lang.String field)
        Returns a physics field.
        Parameters:
        field - Field name.
        Returns:
        Physics field.
      • geom

        java.lang.String geom()
        Returns the tag of the geometry which the physics interface lives on. Returns null for 0D physics interfaces.
        Returns:
        Geometry tag or null.
      • getType

        java.lang.String getType()
        Get the type identification.
        Returns:
        Type identifier.
      • groupBySpaceDimension

        boolean groupBySpaceDimension()
        Whether to group nodes by space dimension.
        Returns:
        Whether to group nodes by space dimension.
      • identifier

        @Deprecated
        java.lang.String identifier()
        Deprecated.
        Use ModelEntity.tag() instead.
      • prop

        PhysicsPropList prop()
        Returns the physics properties.
        Returns:
        List of physics properties.
      • prop

        PhysicsProp prop​(java.lang.String propname)
        Returns a physics property.
        Parameters:
        propname - Property name.
        Returns:
        Physics property.
      • setGroupBySpaceDimension

        void setGroupBySpaceDimension​(boolean groupBySpaceDimension)
        Sets whether to group nodes by space dimension.
        Parameters:
        groupBySpaceDimension - Whether to group nodes by space dimension.