Skip to main content
Ctrl+K
ansys-speos-core 0.4.0 documentation - Home ansys-speos-core 0.4.0 documentation - Home
  • Overview
  • Getting started
  • API reference
  • Examples
  • Contribute
    • Release notes
Ctrl+K
  • GitHub
Ctrl+K
  • Overview
  • Getting started
  • API reference
  • Examples
  • Contribute
  • Release notes
  • GitHub

Section Navigation

  • ansys.speos.core
    • kernel
      • body
      • client
      • crud
      • face
      • intensity_template
        • IntensityTemplateLink
        • IntensityTemplateStub
      • job
      • part
      • proto_message_utils
      • scene
      • sensor_template
      • simulation_template
      • sop_template
      • source_template
      • spectrum
      • vop_template
    • workflow
    • body
    • face
    • geo_ref
    • intensity
    • launcher
    • logger
    • lxp
    • opt_prop
    • part
    • project
    • proto_message_utils
    • sensor
    • simulation
    • source
    • spectrum
    • speos
  • API reference
  • The ansys.speos.core library
  • The kernel package
  • The intensity_template.py module
  • IntensityTemplateLink

IntensityTemplateLink#

class ansys.speos.core.kernel.intensity_template.IntensityTemplateLink(db, key)#

Bases: ansys.speos.core.kernel.crud.CrudItem

Link object for intensity template in database.

Parameters:
dbansys.speos.core.kernel.intensity_template.IntensityTemplateStub

Database to link to.

keystr

Key of the body in the database.

Parameters:

key (str)

Examples

>>> from ansys.speos.core.speos import Speos
>>> from ansys.speos.core.kernel.intensity_template import (
...     ProtoIntensityTemplate,
... )
>>> speos = Speos(host="localhost", port=50098)
>>> int_t_db = speos.client.intensity_templates()
>>> int_t_message = ProtoIntensityTemplate(name="Cos_3_170")
>>> int_t_message.cos.N = 3.0
>>> int_t_message.cos.total_angle = 170
>>> int_t_link = int_t_db.create(message=int_t_message)

Overview#

get

Get the datamodel from database.

set

Change datamodel in database.

delete

Remove datamodel from database.

get_library_type_info

Retrieve information about intensity template in case of library type.

__str__

Return the string representation of the intensity_template.

Import detail#

from ansys.speos.core.kernel.intensity_template import IntensityTemplateLink

Method detail#

IntensityTemplateLink.__str__()#

Return the string representation of the intensity_template.

IntensityTemplateLink.get()#

Get the datamodel from database.

Returns:
intensity_template.IntensityTemplate

IntensityTemplate datamodel.

IntensityTemplateLink.set(data)#

Change datamodel in database.

Parameters:
dataintensity_template.IntensityTemplate

New IntensityTemplate datamodel.

IntensityTemplateLink.delete()#

Remove datamodel from database.

IntensityTemplateLink.get_library_type_info()#

Retrieve information about intensity template in case of library type.

Returns:
ansys.api.speos.intensity.v1.intensity_pb2.GetLibraryTypeInfo_Response

Information about intensity template, like flux value.

On this page
  • ansys.speos.core.kernel.intensity_template.IntensityTemplateLink
  • Overview
  • Import detail
  • Method detail
    • __str__()
    • get()
    • set()
    • delete()
    • get_library_type_info()
  • Show Source

© Copyright (c) 2025 ANSYS, Inc. All rights reserved.

Created using Sphinx 8.1.3.

Built with the Ansys Sphinx Theme 1.4.2.
Last updated on