Main Content

memoryEstimate

Estimate memory required to solve antenna or array mesh

Since R2024a

    Description

    example

    memoryEstimate(object) uses the already generated mesh of an antenna or array to estimate the amount of memory required to solve that mesh.

    memoryEstimate(object,frequency) generates the mesh for an antenna or array at the given frequency and estimates the memory required to solve that mesh.

    memoryEstimate(object,frequency,RetainMesh=true) generates the mesh for an antenna or array at the given frequency, retains the mesh for further analysis, and estimates the memory required to solve that mesh.

    Examples

    collapse all

    This example shows how to estimate the memory required to solve the mesh of a microstrip patch antenna operating at 1GHz.

    Create Microstrip Patch Antenna

    Create a microstrip patch antenna with FR4 substrate.

    d = dielectric("FR4");
    pm = patchMicrostrip(Substrate=d);
    show(pm)

    Run impedance analysis to auto generate the mesh

    Calculate the impedance of this antenna at 1 GHz.

     Z = impedance(pm,1e9);

    Estimate Memory Required

    Display the estimated memory requirement to solve this mesh.

     memoryEstimate(pm)
    ans = 
    '1.1 GB'
    

    This example shows how to estimate the memory required to solve the antipodal Vivaldi antenna mesh while retaining the generated mesh.

    Create Antipodal Vivaldi Antenna

    Create an antipodal Vivaldi antenna operating at 2GHz. Estimate the memory requirement while retaining the generated mesh.

    m = vivaldiAntipodal;
    memoryEstimate(m,2e9,RetainMesh=true)  
    ans = 
    '920 MB'
    

    View Retained Mesh

    View the retained mesh.

    mesh(m)

    Input Arguments

    collapse all

    Antenna or array to estimate the memory requirement, specified as either:

    • Antenna object

    • Array object

    • customAtenna object

    • pcbStack object

    Example: dipole

    Example: linerArray

    Example: customAntenna

    Example: pcbStack

    Operating frequency of the antenna or array to estimate the memory requirements, specified as either a scalar or vector. When you specify the frequency as vector, memoryEstimate function returns the required memory for the highest frequency in the vector.

    Example: 1e9

    Example: [1e9 5e9]

    Data Types: double

    Version History

    Introduced in R2024a