.ClaRa.Basics.Functions.GenerateGrid

Information

This function computes the discretization of a given interval I of length L into N cells.

The input SizeFunc[:] consists of a vector of signed reals, e.g {i_1,i_2,....,i_K}. The number K of reals corresponds to a subdivision of I into K subintervals I_K of length L/K. Accordingly every subinterval I_K contains (up to rounding) N/K cells. For each I_K the number i_K prescribes a distribution of cells. Here i_K=0 corresponds to equidistant cell spacing, i_K > 0 to increasing cell width from beginning to the end of I_K, i_K < 0 to decreasing cell width from beginning to the end of I_K. The modulus |i_K| determines the stretching rate.

 

For detailed model documentation please consult the html-documentation shipped with ClaRa.

 


Authorship and Copyright Statement for original (initial) Contribution

Author:

DYNCAP/DYNSTART development team, Copyright © 2011-2024.

References:

For references please consult the html-documentation shipped with ClaRa.

Remarks:

This component was developed by ClaRa development team under the 3-clause BSD License.

Acknowledgements:

ClaRa originated from the collaborative research projects DYNCAP and DYNSTART. Both research projects were supported by the German Federal Ministry for Economic Affairs and Energy (FKZ 03ET2009 and FKZ 03ET7060).

CLA:

The author(s) have agreed to ClaRa CLA, version 1.0. See https://claralib.com/pdf/CLA.pdf

By agreeing to ClaRa CLA, version 1.0 the author has granted the ClaRa development team a permanent right to use and modify his initial contribution as well as to publish it or its modified versions under the 3-clause BSD License.

The ClaRa development team consists of the following partners:

TLK-Thermo GmbH (Braunschweig, Germany)

XRG Simulation GmbH (Hamburg, Germany).

Interface

function GenerateGrid
  extends ClaRa.Basics.Icons.Function;
  input Real SizeFunc[:] "array determining number and kind of different stretchings to be applied";
  input Real L "length in discretization direction";
  input Integer N "number of cells in grid";
  output Real dx[N] "resulting grid";
end GenerateGrid;

Revisions

For revisions please consult the html-documentation shipped with ClaRa.


Generated at 2024-11-23T19:25:52Z by OpenModelicaOpenModelica 1.24.2 using GenerateDoc.mos