    

 ## On this page

  

 

 # ansys::dpf::FieldDefinition Class Reference

 Last update: 16.07.2025 

`#include <dpf_api.h>`

Inheritance diagram for ansys::dpf::FieldDefinition:

 ![](/sites/default/files/migrate-content/dpf_cpp_client_library_2025_r1_1/classansys_1_1dpf_1_1FieldDefinition.png)



## <a id="pub-methods" name="pub-methods"></a>Public Member Functions

 [FieldDefinition](classansys_1_1dpf_1_1FieldDefinition.xhtml#a55fcf5f1d96e6561b556aa24b60c6c30) ()  [FieldDefinition](classansys_1_1dpf_1_1FieldDefinition.xhtml#a1a73bbd28c4d55a2338071a3fa91f6f2) ([Client](classansys_1_1dpf_1_1Client.xhtml) const \*const client) <a id="a0b4846c843a0473ea8b8e856619a6fb8" name="a0b4846c843a0473ea8b8e856619a6fb8"></a> **FieldDefinition** ([FieldDefinition](classansys_1_1dpf_1_1FieldDefinition.xhtml) const &amp;) <a id="abdb982a583acaa9e29ee0bf169b9632b" name="abdb982a583acaa9e29ee0bf169b9632b"></a> **FieldDefinition** ([FieldDefinition](classansys_1_1dpf_1_1FieldDefinition.xhtml) &amp;&amp;) noexcept  [FieldDefinition](classansys_1_1dpf_1_1FieldDefinition.xhtml#a7b2ce85121239d3571ab9a92ec230d2e) (const [ansys::dpf::Location](structansys_1_1dpf_1_1Location.xhtml) &amp;loc, const std::vector&lt; [dp\_int](namespaceansys_1_1dpf.xhtml#a60d181a1f9d29cc7cc38b25dac4401f0) &gt; &amp;[dimensions](classansys_1_1dpf_1_1FieldDefinition.xhtml#a0d33e4d4faaa30b3808014b19de680cd))  [FieldDefinition](classansys_1_1dpf_1_1FieldDefinition.xhtml#acc41b3a0c2b6009f103b02c6f0fbe17e) (const [ansys::dpf::Location](structansys_1_1dpf_1_1Location.xhtml) &amp;loc, const std::vector&lt; [dp\_int](namespaceansys_1_1dpf.xhtml#a60d181a1f9d29cc7cc38b25dac4401f0) &gt; &amp;[dimensions](classansys_1_1dpf_1_1FieldDefinition.xhtml#a0d33e4d4faaa30b3808014b19de680cd), const [Unit](classansys_1_1dpf_1_1Unit.xhtml) &amp;[unit](classansys_1_1dpf_1_1FieldDefinition.xhtml#aaf9c5c92a6d192207f01067950907af8))  [FieldDefinition](classansys_1_1dpf_1_1FieldDefinition.xhtml#a5a95d2e30068bba5ef9b312542e1f898) ([Client](classansys_1_1dpf_1_1Client.xhtml) const \*const client, const [ansys::dpf::Location](structansys_1_1dpf_1_1Location.xhtml) &amp;loc, const std::vector&lt; [dp\_int](namespaceansys_1_1dpf.xhtml#a60d181a1f9d29cc7cc38b25dac4401f0) &gt; &amp;[dimensions](classansys_1_1dpf_1_1FieldDefinition.xhtml#a0d33e4d4faaa30b3808014b19de680cd))  [FieldDefinition](classansys_1_1dpf_1_1FieldDefinition.xhtml#a035018ec94f2ca6a312b7110b73ec227) ([Client](classansys_1_1dpf_1_1Client.xhtml) const \*const client, const [ansys::dpf::Location](structansys_1_1dpf_1_1Location.xhtml) &amp;loc, const std::vector&lt; [dp\_int](namespaceansys_1_1dpf.xhtml#a60d181a1f9d29cc7cc38b25dac4401f0) &gt; &amp;[dimensions](classansys_1_1dpf_1_1FieldDefinition.xhtml#a0d33e4d4faaa30b3808014b19de680cd), const [Unit](classansys_1_1dpf_1_1Unit.xhtml) &amp;[unit](classansys_1_1dpf_1_1FieldDefinition.xhtml#aaf9c5c92a6d192207f01067950907af8)) <a id="ad5b3ffb901b9fae885af420f727956ef" name="ad5b3ffb901b9fae885af420f727956ef"></a>[FieldDefinition](classansys_1_1dpf_1_1FieldDefinition.xhtml) &amp; **operator=** ([FieldDefinition](classansys_1_1dpf_1_1FieldDefinition.xhtml) const &amp;) <a id="a61679cddaa8bd95bd9fa23d605da23ca" name="a61679cddaa8bd95bd9fa23d605da23ca"></a>[FieldDefinition](classansys_1_1dpf_1_1FieldDefinition.xhtml) &amp; **operator=** ([FieldDefinition](classansys_1_1dpf_1_1FieldDefinition.xhtml) &amp;&amp;) noexcept [ansys::dpf::Unit](classansys_1_1dpf_1_1Unit.xhtml) [unit](classansys_1_1dpf_1_1FieldDefinition.xhtml#aaf9c5c92a6d192207f01067950907af8) () const std::vector&lt; [dp\_int](namespaceansys_1_1dpf.xhtml#a60d181a1f9d29cc7cc38b25dac4401f0) &gt; [dimensions](classansys_1_1dpf_1_1FieldDefinition.xhtml#a0d33e4d4faaa30b3808014b19de680cd) () const [ansys::dpf::Location](structansys_1_1dpf_1_1Location.xhtml) [location](classansys_1_1dpf_1_1FieldDefinition.xhtml#a9ea61f23ef1eb93c794b7c222d7740b8) () const std::string [name](classansys_1_1dpf_1_1FieldDefinition.xhtml#a75a4c68f58429c63d6fee153d1f46ca3) () const [eshellLayers](namespaceansys_1_1dpf.xhtml#a6d14c6ea165905b13e914d776c880751) [shellLayers](classansys_1_1dpf_1_1FieldDefinition.xhtml#a960c51c470854c20ad8682fcfa891db6) () const void [setName](classansys_1_1dpf_1_1FieldDefinition.xhtml#a18256bc3d3e9733f4cd951ba145d0087) (std::string const &amp;rhs) void [setLocation](classansys_1_1dpf_1_1FieldDefinition.xhtml#a5ef8fa0b594db3066e6aab50d3b019b6) ([ansys::dpf::Location](structansys_1_1dpf_1_1Location.xhtml) const &amp;rhs) void [setUnit](classansys_1_1dpf_1_1FieldDefinition.xhtml#a8033b1d4486ea3d819ecbb6418bab079) ([ansys::dpf::Unit](classansys_1_1dpf_1_1Unit.xhtml) const &amp;rhs) void [setDimensions](classansys_1_1dpf_1_1FieldDefinition.xhtml#ab05632e1f011855593928c927908ccdc) (std::vector&lt; [dp\_int](namespaceansys_1_1dpf.xhtml#a60d181a1f9d29cc7cc38b25dac4401f0) &gt; const &amp;rhs, int effective\_size) void [setDimensions](classansys_1_1dpf_1_1FieldDefinition.xhtml#abb7364b9d7860660498d8b28bf9aa212) (std::vector&lt; [dp\_int](namespaceansys_1_1dpf.xhtml#a60d181a1f9d29cc7cc38b25dac4401f0) &gt; const &amp;rhs) void [setShellLayers](classansys_1_1dpf_1_1FieldDefinition.xhtml#acdab27568afdd87e18e6ad7745564536) ([ansys::dpf::eshellLayers](namespaceansys_1_1dpf.xhtml#a6d14c6ea165905b13e914d776c880751) layers) [FieldDefinition](classansys_1_1dpf_1_1FieldDefinition.xhtml) [deep\_copy](classansys_1_1dpf_1_1FieldDefinition.xhtml#a6399b7f8637e66e969d5ab1b56f1e32b) ([ansys::dpf::Client](classansys_1_1dpf_1_1Client.xhtml) const \*const client) const bool [isOfQuantityType](classansys_1_1dpf_1_1FieldDefinition.xhtml#aa06bf73d67fde6d8fab8679cb0f4297b) ([QuantityType](structansys_1_1dpf_1_1QuantityType.xhtml) const &amp;quantitytype) const void [setQuantityType](classansys_1_1dpf_1_1FieldDefinition.xhtml#a2795d6f4b1c5396a99e6022c804b7b4b) ([QuantityType](structansys_1_1dpf_1_1QuantityType.xhtml) const &amp;quantitytype) int [numberOfQuantityTypes](classansys_1_1dpf_1_1FieldDefinition.xhtml#a5d02a40074a8fb9c0aa2541f02fe439c) () const std::string [quantity\_type](classansys_1_1dpf_1_1FieldDefinition.xhtml#af7d513babc5f529f1ba3e324f5e0b60a) (int i) const [FieldDefinition](classansys_1_1dpf_1_1FieldDefinition.xhtml) [deep\_copy](classansys_1_1dpf_1_1FieldDefinition.xhtml#aef6e0e01b07b4ac765c848c5a98d8e0f) () const ![-](/sites/default/files/migrate-content/dpf_cpp_client_library_2025_r1_1/closed.png) Public Member Functions inherited from [ansys::dpf::DpfTypes](classansys_1_1dpf_1_1DpfTypes.xhtml)virtual bool [empty](classansys_1_1dpf_1_1DpfTypes.xhtml#a39cd546c42518e2332be8f287db95459) () const virtual bool [hasInternalObject](classansys_1_1dpf_1_1DpfTypes.xhtml#ae198f89868d85c7db6dc1a934a1d3c15) () const virtual std::string [describe](classansys_1_1dpf_1_1DpfTypes.xhtml#a9977945710983bc03d2940fa007847b2) () const so::API const \* [callAPI](classansys_1_1dpf_1_1DpfTypes.xhtml#aea34d37e0c080126eff70db34bf46597) () const bool [isOnCommonAPI](classansys_1_1dpf_1_1DpfTypes.xhtml#a9f9789ff61cc9d400a2a344830706b73) () const bool [getClient](classansys_1_1dpf_1_1DpfTypes.xhtml#a968afd9daa0b0f13b65a2ac61369d73a) ([Client](classansys_1_1dpf_1_1Client.xhtml) &amp;client) const bool [hasBeenMovedLocally](classansys_1_1dpf_1_1DpfTypes.xhtml#a1a5634202c15404b6b24e8f50e51cb66) () const bool [isSameObject](classansys_1_1dpf_1_1DpfTypes.xhtml#aa64d5f8fcd7d85ad6ebf708494dbefd7) ([DpfTypes](classansys_1_1dpf_1_1DpfTypes.xhtml) const &amp;rhs) const ## <a id="pub-static-methods" name="pub-static-methods"></a>Static Public Member Functions

static [FieldDefinition](classansys_1_1dpf_1_1FieldDefinition.xhtml) [emptyFieldDefinition](classansys_1_1dpf_1_1FieldDefinition.xhtml#ae55318ae24aadd39ef0bb18a4b27c004) () <a id="details" name="details"></a>## Detailed Description

Provide all the information about the content of a [Field](classansys_1_1dpf_1_1Field.xhtml) ([Unit](classansys_1_1dpf_1_1Unit.xhtml), [location](classansys_1_1dpf_1_1FieldDefinition.xhtml#a9ea61f23ef1eb93c794b7c222d7740b8), dimension, a.s.o.).

See also[Field](classansys_1_1dpf_1_1Field.xhtml "Data for an entity.") Examples[AveragingTest.cpp](AveragingTest_8cpp-example.xhtml#_a19), [DataApis.cpp](DataApis_8cpp-example.xhtml#_a20), and [DataExport.cpp](DataExport_8cpp-example.xhtml#_a26).

## Constructor &amp; Destructor Documentation

<a id="a55fcf5f1d96e6561b556aa24b60c6c30" name="a55fcf5f1d96e6561b556aa24b60c6c30"></a>## [◆ ](#a55fcf5f1d96e6561b556aa24b60c6c30)FieldDefinition() \[1/6\]

 ansys::dpf::FieldDefinition::FieldDefinition  ( ) 

Create [FieldDefinition](classansys_1_1dpf_1_1FieldDefinition.xhtml).





<a id="a1a73bbd28c4d55a2338071a3fa91f6f2" name="a1a73bbd28c4d55a2338071a3fa91f6f2"></a>## [◆ ](#a1a73bbd28c4d55a2338071a3fa91f6f2)FieldDefinition() \[2/6\]

 ansys::dpf::FieldDefinition::FieldDefinition  ( [Client](classansys_1_1dpf_1_1Client.xhtml) const \*const  *client*) 

Create [FieldDefinition](classansys_1_1dpf_1_1FieldDefinition.xhtml) on a server.

Parameters \[in\]clientRemote client. 



<a id="a7b2ce85121239d3571ab9a92ec230d2e" name="a7b2ce85121239d3571ab9a92ec230d2e"></a>## [◆ ](#a7b2ce85121239d3571ab9a92ec230d2e)FieldDefinition() \[3/6\]

 ansys::dpf::FieldDefinition::FieldDefinition  ( const [ansys::dpf::Location](structansys_1_1dpf_1_1Location.xhtml) &amp;  *loc*,    const std::vector&lt; [dp\_int](namespaceansys_1_1dpf.xhtml#a60d181a1f9d29cc7cc38b25dac4401f0) &gt; &amp;  *dimensions*   ) 

Create [FieldDefinition](classansys_1_1dpf_1_1FieldDefinition.xhtml).

Parameters \[in\]loc[Location](structansys_1_1dpf_1_1Location.xhtml) on which field defined. \[in\]dimensionsVector defining size of each dimension. See [Dimensionality](structansys_1_1dpf_1_1Dimensionality.xhtml). 



<a id="acc41b3a0c2b6009f103b02c6f0fbe17e" name="acc41b3a0c2b6009f103b02c6f0fbe17e"></a>## [◆ ](#acc41b3a0c2b6009f103b02c6f0fbe17e)FieldDefinition() \[4/6\]

 ansys::dpf::FieldDefinition::FieldDefinition  ( const [ansys::dpf::Location](structansys_1_1dpf_1_1Location.xhtml) &amp;  *loc*,    const std::vector&lt; [dp\_int](namespaceansys_1_1dpf.xhtml#a60d181a1f9d29cc7cc38b25dac4401f0) &gt; &amp;  *dimensions*,    const [Unit](classansys_1_1dpf_1_1Unit.xhtml) &amp;  *unit*   ) 

Create [FieldDefinition](classansys_1_1dpf_1_1FieldDefinition.xhtml).

Parameters \[in\]loc[Location](structansys_1_1dpf_1_1Location.xhtml) on which field defined. \[in\]dimensionsVector defining size of each dimension. See [Dimensionality](structansys_1_1dpf_1_1Dimensionality.xhtml). \[in\]unit[Unit](classansys_1_1dpf_1_1Unit.xhtml) defined for field. 



<a id="a5a95d2e30068bba5ef9b312542e1f898" name="a5a95d2e30068bba5ef9b312542e1f898"></a>## [◆ ](#a5a95d2e30068bba5ef9b312542e1f898)FieldDefinition() \[5/6\]

 ansys::dpf::FieldDefinition::FieldDefinition  ( [Client](classansys_1_1dpf_1_1Client.xhtml) const \*const  *client*,    const [ansys::dpf::Location](structansys_1_1dpf_1_1Location.xhtml) &amp;  *loc*,    const std::vector&lt; [dp\_int](namespaceansys_1_1dpf.xhtml#a60d181a1f9d29cc7cc38b25dac4401f0) &gt; &amp;  *dimensions*   ) 

Create [FieldDefinition](classansys_1_1dpf_1_1FieldDefinition.xhtml).

Parameters \[in\]clientRemote client. \[in\]loc[Location](structansys_1_1dpf_1_1Location.xhtml) on which field defined. \[in\]dimensionsVector defining size of each dimension. See [Dimensionality](structansys_1_1dpf_1_1Dimensionality.xhtml). 



<a id="a035018ec94f2ca6a312b7110b73ec227" name="a035018ec94f2ca6a312b7110b73ec227"></a>## [◆ ](#a035018ec94f2ca6a312b7110b73ec227)FieldDefinition() \[6/6\]

 ansys::dpf::FieldDefinition::FieldDefinition  ( [Client](classansys_1_1dpf_1_1Client.xhtml) const \*const  *client*,    const [ansys::dpf::Location](structansys_1_1dpf_1_1Location.xhtml) &amp;  *loc*,    const std::vector&lt; [dp\_int](namespaceansys_1_1dpf.xhtml#a60d181a1f9d29cc7cc38b25dac4401f0) &gt; &amp;  *dimensions*,    const [Unit](classansys_1_1dpf_1_1Unit.xhtml) &amp;  *unit*   ) 

Create [FieldDefinition](classansys_1_1dpf_1_1FieldDefinition.xhtml).

Parameters \[in\]clientRemote client. \[in\]loc[Location](structansys_1_1dpf_1_1Location.xhtml) on which field defined. \[in\]dimensionsVector defining size of each dimension. See [Dimensionality](structansys_1_1dpf_1_1Dimensionality.xhtml). \[in\]unit[Unit](classansys_1_1dpf_1_1Unit.xhtml) defined for field. 



## Member Function Documentation

<a id="aef6e0e01b07b4ac765c848c5a98d8e0f" name="aef6e0e01b07b4ac765c848c5a98d8e0f"></a>## [◆ ](#aef6e0e01b07b4ac765c848c5a98d8e0f)deep\_copy() \[1/2\]

 [FieldDefinition](classansys_1_1dpf_1_1FieldDefinition.xhtml) ansys::dpf::FieldDefinition::deep\_copy  ( )  const

Make a deep copy locally.





<a id="a6399b7f8637e66e969d5ab1b56f1e32b" name="a6399b7f8637e66e969d5ab1b56f1e32b"></a>## [◆ ](#a6399b7f8637e66e969d5ab1b56f1e32b)deep\_copy() \[2/2\]

 [FieldDefinition](classansys_1_1dpf_1_1FieldDefinition.xhtml) ansys::dpf::FieldDefinition::deep\_copy  ( [ansys::dpf::Client](classansys_1_1dpf_1_1Client.xhtml) const \*const  *client*)  const

Make a deep copy on a given client.

Parameters \[in\]clientRemote client 



<a id="a0d33e4d4faaa30b3808014b19de680cd" name="a0d33e4d4faaa30b3808014b19de680cd"></a>## [◆ ](#a0d33e4d4faaa30b3808014b19de680cd)dimensions()

 std::vector&lt; [dp\_int](namespaceansys_1_1dpf.xhtml#a60d181a1f9d29cc7cc38b25dac4401f0) &gt; ansys::dpf::FieldDefinition::dimensions  ( )  const

ReturnsVector defining size of each dimension. See [Dimensionality](structansys_1_1dpf_1_1Dimensionality.xhtml). Examples[AveragingTest.cpp](AveragingTest_8cpp-example.xhtml#a21).



<a id="ae55318ae24aadd39ef0bb18a4b27c004" name="ae55318ae24aadd39ef0bb18a4b27c004"></a>## [◆ ](#ae55318ae24aadd39ef0bb18a4b27c004)emptyFieldDefinition()

 static [FieldDefinition](classansys_1_1dpf_1_1FieldDefinition.xhtml) ansys::dpf::FieldDefinition::emptyFieldDefinition  ( )   static 

Create an empty [FieldDefinition](classansys_1_1dpf_1_1FieldDefinition.xhtml).

ReturnsEmpty [FieldDefinition](classansys_1_1dpf_1_1FieldDefinition.xhtml). 



<a id="aa06bf73d67fde6d8fab8679cb0f4297b" name="aa06bf73d67fde6d8fab8679cb0f4297b"></a>## [◆ ](#aa06bf73d67fde6d8fab8679cb0f4297b)isOfQuantityType()

 bool ansys::dpf::FieldDefinition::isOfQuantityType  ( [QuantityType](structansys_1_1dpf_1_1QuantityType.xhtml) const &amp;  *quantitytype*)  const

checks is the field data is of the given quantity type.





<a id="a9ea61f23ef1eb93c794b7c222d7740b8" name="a9ea61f23ef1eb93c794b7c222d7740b8"></a>## [◆ ](#a9ea61f23ef1eb93c794b7c222d7740b8)location()

 [ansys::dpf::Location](structansys_1_1dpf_1_1Location.xhtml) ansys::dpf::FieldDefinition::location  ( )  const

Returns[Location](structansys_1_1dpf_1_1Location.xhtml) on which field defined. Examples[AveragingTest.cpp](AveragingTest_8cpp-example.xhtml#a10), and [DataApis.cpp](DataApis_8cpp-example.xhtml#a26).



<a id="a75a4c68f58429c63d6fee153d1f46ca3" name="a75a4c68f58429c63d6fee153d1f46ca3"></a>## [◆ ](#a75a4c68f58429c63d6fee153d1f46ca3)name()

 std::string ansys::dpf::FieldDefinition::name  ( )  const

ReturnsName of the field. 



<a id="a5d02a40074a8fb9c0aa2541f02fe439c" name="a5d02a40074a8fb9c0aa2541f02fe439c"></a>## [◆ ](#a5d02a40074a8fb9c0aa2541f02fe439c)numberOfQuantityTypes()

 int ansys::dpf::FieldDefinition::numberOfQuantityTypes  ( )  const

Get the number of quantity types.





<a id="af7d513babc5f529f1ba3e324f5e0b60a" name="af7d513babc5f529f1ba3e324f5e0b60a"></a>## [◆ ](#af7d513babc5f529f1ba3e324f5e0b60a)quantity\_type()

 std::string ansys::dpf::FieldDefinition::quantity\_type  ( int  *i*)  const

Get i'th quantity types.





<a id="abb7364b9d7860660498d8b28bf9aa212" name="abb7364b9d7860660498d8b28bf9aa212"></a>## [◆ ](#abb7364b9d7860660498d8b28bf9aa212)setDimensions() \[1/2\]

 void ansys::dpf::FieldDefinition::setDimensions  ( std::vector&lt; [dp\_int](namespaceansys_1_1dpf.xhtml#a60d181a1f9d29cc7cc38b25dac4401f0) &gt; const &amp;  *rhs*) 

Set dimensions of field.

Parameters \[in\]rhsVector defining size of each dimension. See [Dimensionality](structansys_1_1dpf_1_1Dimensionality.xhtml). 



<a id="ab05632e1f011855593928c927908ccdc" name="ab05632e1f011855593928c927908ccdc"></a>## [◆ ](#ab05632e1f011855593928c927908ccdc)setDimensions() \[2/2\]

 void ansys::dpf::FieldDefinition::setDimensions  ( std::vector&lt; [dp\_int](namespaceansys_1_1dpf.xhtml#a60d181a1f9d29cc7cc38b25dac4401f0) &gt; const &amp;  *rhs*,    int  *effective\_size*   ) 

Set dimensions of field.

Parameters \[in\]rhsVector defining size of each dimension. See [Dimensionality](structansys_1_1dpf_1_1Dimensionality.xhtml). \[in\]effective\_sizeEffective size of data per field entry. (scalar is 1, xyz vector is 3, 2 Dimensional 3x3 Matrix is 9, ...) 



<a id="a5ef8fa0b594db3066e6aab50d3b019b6" name="a5ef8fa0b594db3066e6aab50d3b019b6"></a>## [◆ ](#a5ef8fa0b594db3066e6aab50d3b019b6)setLocation()

 void ansys::dpf::FieldDefinition::setLocation  ( [ansys::dpf::Location](structansys_1_1dpf_1_1Location.xhtml) const &amp;  *rhs*) 

Set field location.

Parameters \[in\]rhs[Location](structansys_1_1dpf_1_1Location.xhtml) on which field defined. Examples[AveragingTest.cpp](AveragingTest_8cpp-example.xhtml#a20).



<a id="a18256bc3d3e9733f4cd951ba145d0087" name="a18256bc3d3e9733f4cd951ba145d0087"></a>## [◆ ](#a18256bc3d3e9733f4cd951ba145d0087)setName()

 void ansys::dpf::FieldDefinition::setName  ( std::string const &amp;  *rhs*) 

Set field name.





<a id="a2795d6f4b1c5396a99e6022c804b7b4b" name="a2795d6f4b1c5396a99e6022c804b7b4b"></a>## [◆ ](#a2795d6f4b1c5396a99e6022c804b7b4b)setQuantityType()

 void ansys::dpf::FieldDefinition::setQuantityType  ( [QuantityType](structansys_1_1dpf_1_1QuantityType.xhtml) const &amp;  *quantitytype*) 

Set field data quantity type.





<a id="acdab27568afdd87e18e6ad7745564536" name="acdab27568afdd87e18e6ad7745564536"></a>## [◆ ](#acdab27568afdd87e18e6ad7745564536)setShellLayers()

 void ansys::dpf::FieldDefinition::setShellLayers  ( [ansys::dpf::eshellLayers](namespaceansys_1_1dpf.xhtml#a6d14c6ea165905b13e914d776c880751)  *layers*) 

Set layers of field.

Parameters \[in\]layersLayers over which field defined. 



<a id="a8033b1d4486ea3d819ecbb6418bab079" name="a8033b1d4486ea3d819ecbb6418bab079"></a>## [◆ ](#a8033b1d4486ea3d819ecbb6418bab079)setUnit()

 void ansys::dpf::FieldDefinition::setUnit  ( [ansys::dpf::Unit](classansys_1_1dpf_1_1Unit.xhtml) const &amp;  *rhs*) 

Set field unit.

Parameters \[in\]rhs[Unit](classansys_1_1dpf_1_1Unit.xhtml) for field. Examples[AveragingTest.cpp](AveragingTest_8cpp-example.xhtml#a22), [DataApis.cpp](DataApis_8cpp-example.xhtml#a22), and [DataExport.cpp](DataExport_8cpp-example.xhtml#a28).



<a id="a960c51c470854c20ad8682fcfa891db6" name="a960c51c470854c20ad8682fcfa891db6"></a>## [◆ ](#a960c51c470854c20ad8682fcfa891db6)shellLayers()

 [eshellLayers](namespaceansys_1_1dpf.xhtml#a6d14c6ea165905b13e914d776c880751) ansys::dpf::FieldDefinition::shellLayers  ( )  const

ReturnsLayers over which field defined. 



<a id="aaf9c5c92a6d192207f01067950907af8" name="aaf9c5c92a6d192207f01067950907af8"></a>## [◆ ](#aaf9c5c92a6d192207f01067950907af8)unit()

 [ansys::dpf::Unit](classansys_1_1dpf_1_1Unit.xhtml) ansys::dpf::FieldDefinition::unit  ( )  const

Returns[Unit](classansys_1_1dpf_1_1Unit.xhtml) of [FieldDefinition](classansys_1_1dpf_1_1FieldDefinition.xhtml). Examples[DataApis.cpp](DataApis_8cpp-example.xhtml#a27).