ForceDistributionOutput#
- class ForceDistributionOutput[source]#
Bases:
Flow360BaseModelForceDistributionOutputclass for customized force and moment distribution output. Axis-aligned components are output for force and moment coefficients at the end of the simulation.Example
Basic usage with default settings (all wall surfaces):
>>> fl.ForceDistributionOutput( ... name="spanwise", ... distribution_direction=[0.1, 0.9, 0.0], ... )
Specifying specific surfaces to include in the force integration (useful for automotive cases to exclude road/floor surfaces):
>>> fl.ForceDistributionOutput( ... name="vehicle_x_distribution", ... distribution_direction=[1.0, 0.0, 0.0], ... entities=[volume_mesh["vehicle_body"], volume_mesh["wheels"]], ... number_of_segments=500, ... )
Attributes
- distribution_direction: Axis#
Direction of the force distribution output.
- entities: EntityList[Surface, MirroredSurface], optional#
List of surfaces to include in the force integration. If not specified, all wall surfaces are included. This is useful for automotive cases to exclude road/floor surfaces.
- Default:
None
- number_of_segments: int#
Number of segments (bins) to use along the distribution direction. Default is 300 segments. Increasing this value provides higher resolution in the force distribution plot.
- Default:
300
Additional Constructors
- classmethod from_file(filename)#
Loads a
Flow360BaseModelfrom .json, or .yaml file.- Parameters:
filename (str) – Full path to the .yaml or .json file to load the
Flow360BaseModelfrom.- Returns:
An instance of the component class calling load.
- Return type:
Flow360BaseModel
Example
>>> params = Flow360BaseModel.from_file(filename='folder/sim.json')
Methods
- help(methods=False)#
Prints message describing the fields and methods of a
Flow360BaseModel.- Parameters:
methods (bool = False) – Whether to also print out information about object’s methods.
- Return type:
None
Example
>>> params.help(methods=True)