    

 ## On this page

  

 

 # ApproximateRandomField Class Reference

 Last update: 16.07.2025 

an algorithm that computes new field samples from amplitudes and random field model [More...](class_approximate_random_field.xhtml#details)

## <a id="pub-types" name="pub-types"></a>Public Types

<a id="a999a7ace250aceefc403bb62cd8c3bcc"></a>typedef std::vector&lt; string &gt; [StringVector](class_approximate_random_field.xhtml#a999a7ace250aceefc403bb62cd8c3bcc) typedef for vector of string   
 ## <a id="pub-methods" name="pub-methods"></a>Public Member Functions

 [ApproximateRandomField](class_approximate_random_field.xhtml#abed8428b8373181f0763cb47a6e8b28f) (bool enforce\_equal\_idents=false) constructor [More...](#abed8428b8373181f0763cb47a6e8b28f)  
  [check](class_approximate_random_field.xhtml#a47c34ec1e578c2ce27cf1c5fcd0d1704) ([Structure](class_structure.xhtml) [database](group__data.xhtml#gaebcac3a2836ec9fdf2e47bd812994b6b)) checks the settings [More...](#a47c34ec1e578c2ce27cf1c5fcd0d1704)  
  [compute](class_approximate_random_field.xhtml#ab08e112d95fe611e7eb25491c354d115) ([Structure](class_structure.xhtml) [database](group__data.xhtml#gaebcac3a2836ec9fdf2e47bd812994b6b)) computes the new objects [More...](#ab08e112d95fe611e7eb25491c354d115)  
 ## <a id="pub-attribs" name="pub-attribs"></a>Public Attributes

<a id="a591952882aeaa67ab84a56aa4d053268"></a>bool [accept\_partial\_subspace](class_approximate_random_field.xhtml#a591952882aeaa67ab84a56aa4d053268) if true, then one accepts that the set of input parameters is incomplete. E.g. if a required input parameter is not selected, then one simly assumes the "center" value for it.   
 <a id="ad32f73f98b09adf3f85472a8821a2b8c"></a>[StringVector](class_approximate_random_field.xhtml#a999a7ace250aceefc403bb62cd8c3bcc) [element\_rf\_idents](class_approximate_random_field.xhtml#ad32f73f98b09adf3f85472a8821a2b8c) the idents of selected ELEMENT\_DATA Field data models   
 <a id="a4c9b45bd9f054423f76aa4caadae9268"></a>[StringVector](class_approximate_random_field.xhtml#a999a7ace250aceefc403bb62cd8c3bcc) [intpt\_rf\_idents](class_approximate_random_field.xhtml#a4c9b45bd9f054423f76aa4caadae9268) the idents of selected INTPT\_DATA Field data models   
 <a id="a36214b9d8cdcdaf27d0362f8d82f6291"></a>[StringVector](class_approximate_random_field.xhtml#a999a7ace250aceefc403bb62cd8c3bcc) [node\_rf\_idents](class_approximate_random_field.xhtml#a36214b9d8cdcdaf27d0362f8d82f6291) the idents of selected NODE\_DATA Field data models   
 <a id="ade25e60bd85c8b4abd4f5b416cae0eb9"></a>bool [overwrite\_existing](class_approximate_random_field.xhtml#ade25e60bd85c8b4abd4f5b416cae0eb9) if true, existing outut objects will be replaced, otherwise: error if it already exists   
 <a id="a92968627a0b6d1a65f4a0647b6f3f165"></a>[StringVector](class_approximate_random_field.xhtml#a999a7ace250aceefc403bb62cd8c3bcc) [scalar\_rf\_idents](class_approximate_random_field.xhtml#a92968627a0b6d1a65f4a0647b6f3f165) the idents of selected SCALAR\_DATA Field data models   
 <a id="afac43f97194e263427759f8414a2d703"></a>[DataObjectContainer](class_data_object_container.xhtml) [selected\_inputs](class_approximate_random_field.xhtml#afac43f97194e263427759f8414a2d703) contains the selected scalar input samples   
 <a id="details" name="details"></a>## Detailed Description

an algorithm that computes new field samples from amplitudes and random field model



## Constructor &amp; Destructor Documentation

<a id="abed8428b8373181f0763cb47a6e8b28f"></a>## [◆ ](#abed8428b8373181f0763cb47a6e8b28f)ApproximateRandomField()

 [ApproximateRandomField](class_approximate_random_field.xhtml)  ( bool  *enforce\_equal\_idents* = `false`) 

constructor

Parameters enforce\_equal\_identsif true, then the same quantity idents are used as the input idents (is only used in optiSLang's simulation flow. Usually objects with that quantity ident already exist!) 



## Member Function Documentation

<a id="a47c34ec1e578c2ce27cf1c5fcd0d1704"></a>## [◆ ](#a47c34ec1e578c2ce27cf1c5fcd0d1704)check()

 check  ( [Structure](class_structure.xhtml)  *database*) 

checks the settings

Parameters databasethe database we refer to Exceptions anexception in case of an error 



<a id="ab08e112d95fe611e7eb25491c354d115"></a>## [◆ ](#ab08e112d95fe611e7eb25491c354d115)compute()

 compute  ( [Structure](class_structure.xhtml)  *database*) 

computes the new objects

Parameters databasethe database we refer to