Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 5 additions & 11 deletions examples/python_linked_multi_process_step/project_setup.py
Original file line number Diff line number Diff line change
@@ -1,22 +1,17 @@
# ----------------------------------------------------------
# Copyright (C) 2021 by
# ANSYS Switzerland GmbH
# www.ansys.com
#
# Author(s): R.Walker
# ----------------------------------------------------------
"""
Python example with multiple dependent tasks and linked files in between.

Author(s): R.Walker
"""
import argparse
import logging
import os
import random
import sys

from ansys.rep.client import REPError
from ansys.rep.client.jms import (
Client,
File,
FitnessDefinition,
FloatParameterDefinition,
Job,
JobDefinition,
Expand All @@ -32,8 +27,7 @@


def main(client, num_task_definitions, num_jobs, start, inactive):
"""Python project implementing multiple process steps and linkage of files between process steps"""

"""Create project with multiple dependent Python tasks and linked files in between."""
log.debug("=== Project")
proj = Project(
name=f"py_linked_{num_task_definitions}td",
Expand Down
20 changes: 9 additions & 11 deletions examples/python_two_bar_truss_problem/project_setup.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
# ----------------------------------------------------------
# Copyright (C) 2019 by
# ANSYS Switzerland GmbH
# www.ansys.com
#
# Author(s): F.Negri
# ----------------------------------------------------------
"""
Python tow-bar truss example.

Author(s): F.Negri
"""
import argparse
import logging
import os
import random
import sys

from ansys.rep.client import REPError
from ansys.rep.client.jms import (
Expand All @@ -30,11 +27,12 @@


def main(client, num_jobs):
"""Example of Python project implementing the Two-Bar Truss example
from R.L. Fox, Optimization Methods in Engineering Design, Addison Wesley, 1971
See e.g. https://static1.squarespace.com/static/53eacd17e4b0588f78eb723c/t/586ea636d482e91c7a76bd61/1483646550748/Optimization+Methods+in+Engineering+Design.pdf
"""
Create project solving a Two-Bar Truss problem with Python.

from R.L. Fox, Optimization Methods in Engineering Design, Addison Wesley, 1971
See e.g. https://static1.squarespace.com/static/53eacd17e4b0588f78eb723c/t/586ea636d482e91c7a76bd61/1483646550748/Optimization+Methods+in+Engineering+Design.pdf
""" # noqa
log.debug("=== Project")
proj = Project(
name="two_bar_truss_problem", display_name="Two-bar Truss Problem", priority=1, active=True
Expand Down