add_bird#

Modeler3D.add_bird(input_dir, speed=0, global_offset=[0, 0, 0], yaw=0, pitch=0, roll=0, flapping_rate=50, coordinate_system=None, name=None)[source]#

Add a Bird Multipart from 3D Components.

It requires a json file in the folder containing bird infos. An example json file is showed here.

{
    "name": "bird1",
    "version": 1,
    "class":"bird",
    "xlim":["-.7","2.75"],
    "ylim":["-1.2","1.2"],
    "parts": {
        "body": {
            "comp_name": "body.a3dcomp",
            "rotation_cs":null,
            "rotation":null,
            "rotation_axis":null
        },
            "wing_right": {
            "comp_name": "wing_left.a3dcomp",
            "rotation_cs":[".001778" ,".00508" ,".00762"],
            "rotation":"-45deg",
            "rotation_axis":"X"
        },
            "wing_left": {
            "comp_name": "wing_right.a3dcomp",
            "rotation_cs":[".001778" ,"-.00508" ,".00762"],
            "rotation":"45deg",
            "rotation_axis":"X"
        },
            "tail": {
            "comp_name": "tail.a3dcomp",
            "rotation_cs":null,
            "rotation":null,
            "rotation_axis":null
        },
            "beak": {
            "comp_name": "beak.a3dcomp",
            "rotation_cs":null,
            "rotation":null,
            "rotation_axis":null
        }
    }
}
Parameters:
input_dirstr

Path to the actor directory. It must contain a json settings file and a 3dcomponent (.a3dcomp file)

speedfloat, optional

Object movement speed with time (m_per_sec).

global_offsetlist, optional

Offset from Global Coordinate System [x,y,z] in meters.

yawfloat, optional

Yaw Rotation from Global Coordinate System in deg.

pitchfloat, optional

Pitch Rotation from Global Coordinate System in deg.

rollfloat, optional

Roll Rotation from Global Coordinate System in deg.

flapping_ratefloat, optional

Motion flapping rate in Hz.

coordinate_systemstr

Relative CS Name of the actor. None for Global CS.

Returns:
ansys.aedt.core.modeler.actors.Bird

References

>>> oEditor.Insert3DComponent

Examples

>>> from ansys.aedt.core import Hfss
>>> app = Hfss()
>>> bird_dir = "path/to/bird/directory"
>>> bird1 = app.modeler.add_bird(bird_dir,1.0,[19, 4, 3],120,-5,flapping_rate=30)