Skip to main content
Namespace: Ans.DataProcessing

Summary

The Field is the main simulation data container. Results data are defined by values associated to entities (scoping), and these entities are a subset of a model (support)

Example

Class Information

Constructors

Constructor

Parameters:
  • pField (IntPtr)

Constructor

Methods

GetEntityDataByIndex

Method GetEntityDataByIndex data container of the entity asked
Parameters:
  • index (int)
Returns: list

GetEntityDataById

Method GetEntityDataById data container of the entity asked
Parameters:
  • id (int)
Returns: list

UpdateEntityDataByEntityIndex

Parameters:
  • EntityIndex (int)
  • data (list)

Add

Parameters:
  • id (int)
  • data (list)

Reserve

Method Reserve reserve the data vectors
Parameters:
  • scopingSize (int)
  • dataSize (int)

GetHardCopy

Method GetHardCopy create a copy of the field by allocating the data size and getting a copy of the scoping
Parameters:
  • copyData (bool (optional))
Returns: Field

op_Addition

Parameters:
  • a (Field)
  • b (Field)
Returns: BaseOperator

op_Addition

Parameters:
  • a (Field)
  • b (float)
Returns: BaseOperator

op_Addition

Parameters:
  • a (float)
  • b (Field)
Returns: BaseOperator

op_Addition

Parameters:
  • a (Field)
  • b (list)
Returns: BaseOperator

op_Addition

Parameters:
  • a (list)
  • b (Field)
Returns: BaseOperator

op_Subtraction

Parameters:
  • a (Field)
  • b (Field)
Returns: BaseOperator

op_Subtraction

Parameters:
  • a (Field)
  • b (float)
Returns: BaseOperator

op_Subtraction

Parameters:
  • a (float)
  • b (Field)
Returns: BaseOperator

op_Subtraction

Parameters:
  • a (list)
  • b (Field)
Returns: BaseOperator

op_Subtraction

Parameters:
  • a (Field)
  • b (list)
Returns: BaseOperator

op_Multiply

Parameters:
  • a (Field)
  • b (Field)
Returns: BaseOperator

op_Multiply

Parameters:
  • a (Field)
  • b (float)
Returns: BaseOperator

op_Multiply

Parameters:
  • a (float)
  • b (Field)
Returns: BaseOperator

op_Multiply

Parameters:
  • a (list)
  • b (Field)
Returns: BaseOperator

op_Multiply

Parameters:
  • a (Field)
  • b (list)
Returns: BaseOperator

GetInternalData

Returns: IntPtr

Properties

Location

Property Location describes what kind of entity the results are scoped to Type: str

NComp

Property NComp number of components by entity Type: int

ComponentCount

Property ComponentCount number of components by entity Type: int

ElementaryDataCount

Property ElementaryDataCount number of times numComp can be found in the data container Type: int

Data

Property Dataaccess the data container row values Data can be seen as a list of elementary data (one by scoping id) Type: list

ScopingIds

Property ScopingIds ids belonging to the scoping, identical to my_field.Scoping.Ids Type: list

Scoping

Property Scoping entities ids representing a subset of the model and on which the data container is scoped Type: Scoping

Unit

Property unit unit symbol of the field Type: str

eShellLayers

Type: shellLayers

MeshedRegionSupport

Property MeshedRegionSupport returns the field’s support if it’s a meshed region Type: MeshedRegion

TimeFreqSupport

Property TimeFreqSupport returns the field’s support if it’s a time freq support Type: TimeFreqSupport

Name

Type: str

Clone

Property Clone create a copy of the field, change its dimensionnality and allocate the data according to the fields scoping and the new dimensionnality Type: FieldCloning

Id

Type: int