Skip to main content
Define a set of entities by ids. The scoping is entities ids representing a subset of the model’s support. Typically, scoping can represent node ids, element ids, time steps, frequencies, joints… Its location indicates what kind of entity the scoping is referring to. Scopings are used to identify the entities where a field is scoped or to choose (through an input pin) a subset on which an operator should compute its result. Inherits from:

Members

Friends

Public functions

Function Scoping

Create a new scoping. Return type:

Function Scoping

Create a scoping of ids at a location. Parameters: Return type:

Function Scoping

Create a scoping of ids at a location. Parameters: Return type:

Function Scoping

Create a new scoping on a server. Parameters:
  • Client const *const client: [in] Client instance designating the IP, port and protocol to use.
Return type:

Function Scoping

Retrieve an existing instance of Scoping on a server. Parameters:
  • int id: [in] Id of the Scoping object on the server’s database.
  • Client const *const client: [in] Client instance designating the IP, port and protocol to use.
Return type:

Function ~Scoping

Return type:

Function Scoping

Parameters:
  • Scoping const &
Return type:

Function Scoping

Parameters:
  • Scoping &&
Return type:

Function operator=

Parameters:
  • Scoping const &
Return type: Scoping &

Function operator=

Parameters:
  • Scoping &&
Return type: Scoping &

Function location

Returns: Location of ids. Return type: ansys::dpf::Location

Function setLocation

Set location of scoping. Parameters: Return type: void

Function setIds

Update scoping to vector of new ids. Parameters:
  • std::vector< dp_id > const & ids: [in] New ids.
Return type: void

Function setIds

Update scoping to list of new ids. Parameters: Return type: void

Function identicalPointers

Compare scoping with input scoping f. Parameters:
  • Scoping const & f: [in] Scoping with which to compare.
Return type: bool

Function size

Returns: Number of entries in scoping. Return type: dp_int

Function idByIndex

Returns: Id at index offset into vector of ids. Parameters:
  • dp_int index: [in] index into vector of ids.
Return type: dp_id

Function indexById

Returns: Index of id within vector of ids. Returns: -1 if id not found. Parameters: Return type: dp_index

Function at

Returns: Id at index offset into vector of ids. Parameters: Return type: dp_id

Function ids

Returns: Pointer to list of ids. Parameters:
  • dp_int & size: [out] Length of list.
Return type: const dp_id *

Function ids

Returns: DpfVector of ids array. Return type: DpfVector< int >

Function getIds

Update ids_to_fill with scoping ids. Parameters:
  • std::vector< dp_id > & ids_to_fill: [out] vector of ids.
Return type: void

Function emplace

Set offset index into scoping to new id. Parameters: Return type: void

Function hashIds

Return type: std::string

Function reserve

Reserve the container of ids. Parameters: Return type: void

Function resize

Resize the container of ids. Parameters: Return type: void

Function getHashableKey

Set and get an simpler hashable entity (here topology identifiers) instead of the full FE Scoping to save time Return type: std::string

Function setHashableKey

Parameters:
  • const std::string & unique_identifier
Return type: void

Function getHash

Compute and get the hash of a scoping Return type: size_t

Function deep_copy

Create a new Scoping on a server by copying all the data of this Scoping. Parameters:
  • ansys::dpf::Client const *const client = nullptr : [in] Client instance designating the IP, port and protocol to use.
  • const bool b_copy_ids = true : [in] Boolean that allows to decide if scoping ids are to be copied
Return type: Scoping

Public static functions

Function emptyScoping

Create an empty scoping. Returns: Empty Scoping Return type: Scoping