Home Products News Support About us

Kamus functions

The PhoeniX script functions in the Kamus order


Keywords: Function library , Kamus

The Kamus Xtree:
Standard / math
Conversion
degree(*)Radian -> degree
rad(*)Degree -> radian
loss2im(*)Calculate the imaginary part of the refractive index for some loss
im2loss(*)Calculate the loss for some imaginary refractive index (dB/cm)
im2bendloss(*)Calculate the bend loss for some imaginary refractive index (dB/90 deg)
RaithDoseFactor(*)Convert a dose factor into a datatype value
Goniometrics
cos(*)cos
sin(*)sin
tan(*)tan
acos(*)acos
asin(*)asin
atan(*)atan
cosh(*)cosh
acosh(*)acosh
sinh(*)sinh
asinh(*)asinh
tanh(*)tanh
atanh(*)atanh
atan2(*)atan2
Standard functions
exp(*)exp
log10(*)10 log
log(*)log(x,base=e)
ln(*)natural log
abs(*)Absolute value
fac(*)Factorial
frac(*)Fraction
hypot(*)Hypothenusa
min(*)Min
max(*)Max
minimum(*)Minimum
maximum(*)Maximum
Concat(*)Concat into an array
mod(*)Modulo
round(*)Round(x,precision=0)
trunc(*)Truncate(x,precision=0)
sign(*)Sign (-1, 0, 1)
sqr(*)Square
sqrt(*)Square root
polynom(*)Polynom in first argument
Statistical functions
sum(*)sum
mean(*)mean
median(*)median
quantiles(*)quantiles
variance(*)variance
stddev(*)stddev
shuffle(*)random shuffle
sample(*)sample
Geometrical bend functions
bendOL2R(*)Bend: Offset + length -> radius
bendOL2A(*)Bend: Offset + length -> angle
bendRA2L(*)Bend: Radius + angle -> length
bendRA2O(*)Bend: Radius + angle -> offset
bendOA2L(*)Bend: Offset + angle -> length
bendOA2R(*)Bend: Offset + angle -> radius
bendLA2O(*)Bend: Length + angle -> offset
bendLA2R(*)Bend: Length + angle -> radius
bendLR2O(*)Bend: Length + radius -> offset
bendLR2A(*)Bend: Length + radius -> angle
bendOR2L(*)Bend: Offset + radius -> length
bendOR2A(*)Bend: Offset + radius -> angle
Special functions
besseli(*)Bessel-i
besseli0(*)i0
besseli1(*)i1
besselj(*)Bessel-j
besselj0(*)j0
besselj1(*)j1
besselk(*)Bessel-k
besselk0(*)k0
besselk1(*)k1
bessely(*)Bessel-y
bessely0(*)y0
bessely1(*)y1
ZBesselJ(*)BesselJ
BesselJPrime(*)BesselJ'
ZBesselY(*)BesselY
BesselYPrime(*)BesselY'
Hankel1(*)Hankel1
Hankel1Prime(*)Hankel1'
Hankel2(*)Hankel2
Hankel2Prime(*)Hankel2'
AiryAi(*)AiryAi
AirydAi(*)AiryAi'
AiryBi(*)AiryBi
AirydBi(*)AiryBi'
ScaledAiryAi(*)scaled AiryAi
ScaledAirydAi(*)scaled AiryAi'
ScaledAiryBi(*)scaled AiryBi
ScaledAirydBi(*)scaled AiryBi'
erf(*)Error function
erfc(*)Compl. err.function
InvFP_1_2_approx(*)Approx. inverse of Fermi Dirac 1/2
Gamma functions
gammln(*)gammln
gammp(*)gammp
gammq(*)gammq
Misc
shift(*)x<a ? 0.0 : x-a
MySQL(*)start SQL command
random(*)random number
rseed(*)random number seed
Constants
physics::e0Permitivity (e0)
physics::cSpeed of light (c)
physics::hPlanck constant (h)
physics::hrReduced Planck Constant (hr)
physics::kBBoltzmann constant (kB)
physics::kTThermal Energy (kT)
physics::meFree electron mass (me)
physics::mnFree neutron mass (mn)
physics::mpFree proton mass (mp)
physics::NAAvogadro number (NA)
physics::PIPI
physics::qElementary charge (q)
physics::eVElectron Volt (eV)
physics::RyRyberg energy (Ry)
physics::u0Permeability (u0)
physics::PHIPHI
Numerical library
Matrix processing
num::fillMatrixFill a matrix with some data
num::LinSolveSolve Ax=b with matrix 'A' and vector 'b' given
num::EigsGet eigenvalues and eigenvectors of matrix 'A'
num::SVDSingular value decomposition
Statistics
num::RcallCall R using a file
Result processing
Data
res::ClearClear result database
res::QueryCountHow much results are available
res::findNameFind by name
res::findUnitFind by unit
res::referenceSelect via result path
res::SetAxisUnitSet axis unit
res::SetVariableUnitSet result unit
res::SetAxisValueSet axis value
res::SetAxisSet axis values
res::GetAxisValueGet axis value
res::OpenGroupCreate new group
res::CloseGroupClose current group
res::StoreAdd item
res::RegressionAnalysisPerform regression analysis
res::ConvertConvert data into double
res::MultWithComplexMultiply the result with a complex value
res::GetValueGet value at some point
File
res::SaveItemSave a result/variable to a file
res::ReadItemRead a result/variable from a file
res::SaveDBSave result database to a result file
res::ReadDBRead result file into the result database
res::ImportImport data from file
res::ExportExport data to file
res::SetAccuracySet print mode as C++ printf string
Graph handling
res::findNameFind result by name
res::findUnitFind result by unit
res::referenceSelect via result path
res::plotCreateCreate a new graph
res::plotGraphPlot current graph
res::plotCloseEnd a graph
res::plotCloseAllClose all graphs
Add curves as...
res::plotDataSquareContour2D contour
res::plotDataSquareWire2D wire
res::plotDataSquareIntensity2D intensity
res::plotDataCubeWire3D wire
res::plotDataCubeIntensity3D intensity
Annotate plot with...
res::plotLineLine or plane depending on Cube / Square plot
SPC graphs via R
res::R_OpenCreate a R-SPC plot
res::R_ShowShow the plot
res::R_setPlotTypeSet global plottype
res::R_setPlotFeatureSets extra features for the lattice plot
res::R_setLevelPlotLevelsHow many plot levels
res::R_setLegendSet legend
res::R_setXLabelSet X-axis label
res::R_setYLabelSet Y-axis label
res::R_setTitleSet Plot title
res::R_setTypeSet type information
res::R_setShowStatsShow statistics
res::R_setCenterDefine the center value
res::R_setLimitsSet limit values of the data
res::R_setTargetSet target values of the data
res::R_setLayoutSet layout of the plot
res::R_setPanelSet panel properties
res::R_setPrePanelSet prepanel properties
res::R_setStripSet strip properties
res::R_setAxisSet axis info
res::R_setStackSet stack
res::R_setExcludeExlucde data
res::R_setKeySet key info
res::R_setScalesSet scales
res::R_setSubSetDefine subset
res::R_setColorKeyUse color key
res::R_setAspectset Aspect
res::R_DataSetNASet NA
Data properties
res::R_DataOpenOpen a data file
res::R_DataModeSpecify data columns
res::R_DataResponseDefine a respons variable
res::R_DataGroupDefine a grouping variable
res::R_DataIndependentDefine an independent variable
res::R_DataConditioningDefine a conditioning variable
res::R_dumpDataFileDump data to file
Output
dsp::clearInfoWinClear info window
dsp::saveInfoWinSave info window to file
dsp::statbarOutput text to statusbar
dsp::messageOutput text to popup window
dsp::TextAttrSet text attributes like bold
Progress window
sys::PctInitOpen progress window
sys::PctExitClose progress window
sys::PctSetSet progress
Advanced options
sys::PctSetRangeDefine the progress range
sys::PctPushRangeIncrease the progress-stack
sys::PctPopRangeDecrease the progress-stack
sys::PctSetTextSet text below progress
sys::PctSetTitleSet title of progress window
Table
dsp::tableOpenOpen
dsp::tableCloseClose
dsp::RowStart new row
dsp::CellWrite cell
dsp::CellOpenStart cell
dsp::CellCloseEnd cell
dsp::HdrWrite header cell
dsp::HdrOpenStart header cell
dsp::HdrCloseEnd header cell
dsp::HeaderGenerate a header
dsp::LinkEmbed a link in the output
dsp::LinePrint a line in the output
dsp::ButtonEmbed a button in the output
dsp::AnchorEmbed an anchor in the output, can be used with dsp::Link()
Menu in HTML
dsp::MenuBarOpenOpen a horizontal menubar
dsp::MenuBarCloseClose the menubar
dsp::MenuSubOpenOpen the menu dropdown
dsp::MenuSubCloseClose the menu dropdown
dsp::MenuItemMenu item
dsp::MenuSubMenuCreate a submenu
XML support
dsp::xmlOpenOpen a XML tag
dsp::xmlCloseClose last XML tag
Report
mask::ReportGenerate a report
sim::ReportOptionSet option for a report
mask::RegionDefine a region
sim::InfoAdd info to a report
sim::ArrowAdd arrow to a report
sim::BezierArrowAdd a 'bezier' arrow to a report
mask::DrawLineAdd line(s) to a report
sim::AnimateCreate an animation
Simulation
sim::generalGeneral options
sim::clearCSClear structure
sim::showCSShow structure
Process solver
Material
Wafer Handling
sim::GetWaferGet wafer
sim::SetStructureSet structure
sim::BondWaferBond wafer
Deposit
sim::DirectionalDepositDirectional deposit step
sim::IsotropicDepositIsotropic deposit step
Remove
sim::EtchEtching step
sim::CMPCMP
sim::RemoveMaterialRemove material
sim::LiftOffLiftOff
sim::DriesoDoeGet equipment settings(www.drieso.org)
sim::SetResponseSet Etch Properties
sim::AddMaterialDisplay settings
sim::GetResponseGet Etch Properties
Advanced
sim::ForceNextEtchForce next etch step
Mask handling
sim::SetMaskSet a mask
sim::EnableMaskEnable mask
sim::DisableMaskDisable the mask
Control
sim::SetProcessOptionsSet options
sim::StartProcessSimulationStart
sim::ClearStructureClear structure
sim::GetCalcWindowGet calculation window
sim::GetHolesInSliceGet Holes in Slice
sim::AddToGraphAdd view to results
sim::saveToCSSave as cross-section definition
Optics propagator
option_display
sim::propagateStart 2D propagation simulation
sim::propagate3DStart 3D propagation simulation
Finite Difference
sim::bpmStart BPM
sim::fdtdStart FDTD
Mode based
sim::bepStart a BEP
sim::quepStart a QUEP
Optics cross section
sim::ScriptAsSideviewUse script as sideview type to handle FieldDesigner files in OptoDesigner
Mode 1D
sim::mode1dAtXMode(s) at some X position
sim::mode1dAtYMode(s) at some Y position
sim::mode_multilayerModes of scripted multilayer
sim::mode1dMode(s) using effective index method
sim::option_mode1dOptions
sim::Gauss1DDefine a 1D Gaussian field
Mode 2D
sim::mode2dMode solver
sim::stressStress solver
sim::static_electric_fieldStatic Electric Field Solver
sim::Temperature2DTemperature Solver
sim::option_mode2dOptions
Field processing
sim::postProcessStandard post processing
sim::GaussFitGauss fit
sim::OverlapPerform overlap calculation
sim::GaussDefine a Gaussian field distribution
sim::PowerInRegionCalculate the power in a given region
sim::PerturbationCalculate the effective refractive index change
sim::ModeAnalysisCalculate the polarization of a field
Material
sim::AddMaterialDisplay settings
Active Material model
mat::addIonAdd ion
mat::setIonConcentrationSet ion concentration
mat::addMultipletAdd multiplet
mat::addStarkLevelAdd starklevel
mat::setFluorescentLifetimeSet fluorescentlifetime
mat::setNonRadiativeFractionSet non-radiative fraction
mat::addQuadraticProcessAdd quadraticprocess
mat::setBranchingRatioSet branching ratio
mat::addPumpProcessAdd pumpprocess
mat::addLaserProcessAdd signalprocess
mat::CalcTemporalResponseTemporal response
mat::AmplifierAmplifier response
Semiconductor Amplifier
sim::SOACalculate Soa steady-state response
Coupled Mode Theory
sim::CMT_ClearClear the CMT structure
sim::CMT_AddStraightGuideAdd straight waveguide to CMT
sim::CMT_AddBendGuideAdd bent waveguide to CMT
sim::CMT_AddFieldAdd mode field to CMT
sim::CMT_CalculatePerform CMT calculations
Mask element
Set element properties
mask::RangeElementSet T-range
mask::GridElementGrid element
Get element properties
mask::docElementDocument element
mask::getRadiusGet radius of curvature at 't'
mask::getWidthGet element width at 't'
mask::getStretchingGet local stretching at 't'
mask::getPathLengthGet integrated path length 'o..t'
mask::getOpticalPathLengthGet integrated optical path length 'o..t'
mask::getVectorGet vector property at 't'
mask::queryElementHasPortHas element a port?
mask::queryElementNameGet script name
mask::findPortElementFind elements connected to a port
mask::saveCurveSave a curve to file
Element versus netlist
mask::queryElementPortsQuery element (set) portnames?
mask::querySubElementsQuery sub elements
mask::getDeltaVectorGet relative distance between elements
mask::getCurveDistanceQuery the minimum distance between two curves at (t,w) pairs
mask::getElementDistanceQuery the minimum distance between two element boundaries
mask::delElementDelete an element
mask::UseElementUse a specific element, so append to the 'use' list
mask::UseAllElementUse all elements, so reset the 'use' list
Geometric calculations
mask::calcCrossingCalculate crossing point between straight lines
mask::calcCurveCrossingCalculate crossing point between curves
mask::calcCircleConvert 3 points into circle
Cross section
mask::CScreateCreate
mask::CSattrSet specific attributes
mask::CSaddAdd an effective material for 2D simulation
mask::CSstoreAdd a cross-section for 3D simulation
mask::AddGridSpecify a discretisation and mask layer
mask::AddGridBooleanSpecify a discretisation and mask layer for CS boolean operations
mask::CSBooleanApply a boolean operation on CS level
mask::CSgetGet the current cross section
mask::CSselectSelect a cross-section
mask::SlicerSend a slice to FlowDesigner
mask::showCSinfoPrint cross-section info
Design rule checking
Cross section level tests
drc::csMinimumWidthDRC check minimum logical width
drc::csMaximumWidthDRC check maximum logical width
drc::csMinimumRadiusDRC check minimum logical radius
drc::csMaximumRadiusDRC check maximum logical radius
Element tests
drc::FailReport element for DRC reports
drc::PortAngleDRC test on port angle to be a value or set of values
drc::PortMinimumXDRC test on port minumum X-coordinate
drc::PortMinimumYDRC test on port minumum Y-coordinate
drc::PortMaximumXDRC test on port maxumum X-coordinate
drc::PortMaximumYDRC test on port maxumum Y-coordinate
DRC reporting
drc::hasFailureAny DRC failure to report?
drc::ViewerReportShow DRC output in the viewer
drc::PopupReportShow DRC output in the popup window
drc::TextReportWrite DRC report to text file
drc::HtmlReportWrite DRC report to html file
Mask export
mask::AddLayerDefine mask layer
mask::viewScreen
mask::gdsiiGDS-II (Stream format)
mask::RaithExport to Raith GDS
mask::cifCIF (Caltech)
mask::mskMSK (IntelliMask)
mask::clewinCleWin export, DLL use only
mask::ExportFileCacheExport to filecache
mask::netlistPhoeniX Netlist
mask::clearTVClear topview structure
mask::ExportViewAreaExport a part of the current view
mask::configExportConfigure detailed export settings
mask::configFine tuning of netlist expansion
mask::libMask_layerSpecify the libMask GDS layer
mask::BooleanLayerDefine a layer or cross-section for design-boolean processing
mask::BooleanTargetDefine the output for design-boolean processing
Mask import
mask::clearFilesClear internal GDS/CIF file cache
mask::loadFileLoad GDS/CIF file for use in elements
mask::cacheSaveFileSave cache file into GDS/CIF
mask::printFileInfoShow some key info of loaded masks
mask::CheckFileCheck maskfile load state
mask::ExpandMaskExpand / flatten a mask file
mask::ClipMaskClip (and flatten) a mask file
Boolean mask operations
+mask::LayerAND
mask::LayerORPerform the boolean "or" on the layers
mask::LayerXORPerform the boolean "xor" on the layers
mask::LayerBooleanPerform a general boolean function on the layers
mask::LayerUniquePerform the boolean "unique" on a layer
mask::LayerAreaCalculate the boolean "sum of polygon" area on a layer
Mask file cursor
mask::getCursorGet a mask-file cursor through move through the data
mask::moveCursorMove a mask-file cursor through the definition tree
mask::queryCursorGet info about a mask element below the cursor
mask::queryPropertiesGet some properties about the shape below the cursor
Netlist tuning
mask::configPortQueuingPort queueing
mask::threadMatchPortElementPort / element match
mask::threadFindLocatedPortsSearch ports which are known
mask::threadUsePortsForElementsUse known port to set elements
mask::threadPortsRun through the ports in parallel
Database
coredb::setScopeSet batch/wafer scope
coredb::getValueGet a value
coredb::getStateGet the state of a batch step
coredb::queryXYQuery data as XY matrix
coredb::queryIDQuery the ID of an element
coredb::queryNameQuery the name of an element
coredb::queryQuery an element on a property
coredb::setViewerBackgroundImageSet an image as the viewer background
coredb::deleteViewerBackgroundImageDelete the viewer background image
coredb::dbEditCellEdit some property
coredb::wafer_action3Display wafer identification cell
coredb::generalLog_action3Display general log status
Misc
sys::includeSet include directory
sys::SysInfoQuery some info
sys::sysGetLevelGet script run level
sys::sysSetLevelSet script run level
sys::systemRun a command via the command line interface (cli/batch)
Time Operations
sys::delayWait a while
sys::DateTimeQuery some time
sys::time2amountCovert time to amount of minutes / seconds / ...
sys::hourAmount of hours to time equivalent
sys::minuteAmount of minutes to time equivalent
sys::secondAmount of minutes to time equivalent
sys::dayAmount of days to time equivalent
sys::monthAmount of months to time equivalent
sys::yearAmount of years to time equivalent
File and directory handling
sys::fscanScan file into variable via regex
sys::file_mkdirMake new directory
sys::file_dir_existTest if directory exists
sys::file_rmdirRemove directory
sys::file_deleteDelete a file
sys::file_copyCopy a file
sys::file_renameRename a file
sys::file_existTest for existance of file
sys::file_lengthReturn the length of a file
sys::file_compareCompare two files
File menu
sys::fileNewNew
sys::fileOpenOpen
sys::fileSaveSave
sys::fileSaveAsSaveAs
sys::fileExitExit
Variable attributes
sys::varValueSetSet the value of the var
sys::varAttrSetSet an attribute
sys::varAttrFindTest attribute
sys::varAttrFindValueGet attribute value
sys::varAttrCountHow many attributes
sys::varAttrNameGet the n'th attribute name
sys::varAttrValueGet the n'th attribute value
sys::varAttrStripStrip the var of it attributes
sys::varQueryEmptyIs the variable empty?
String handling
sys::scanScan string into variable via regex
sys::leftStringCompare the strings and (if matching) return the substring
sys::rightStringCompare the strings
sys::inStringSearch the string (case insensitive) and (if available) return true
sys::midStringGet part of the string
sys::replaceStringReplace text in a string
sys::strLowerConvert string to lower case
sys::strUpperConvert string to upper case
sys::stringLengthLength of the string
sys::truncLeftGet the left n characters of the string
sys::truncRightGet the right n characters of the string
sys::stringAsFileConvert the string into a file/path name with @ replacement
sys::toHTMLConvert special characters to HTML characters, e.g. ">" becomes "&gt"
Document generation
sys::showMaterialTableExport material table
sys::showFunctionTableExport function table
mask::showElementTableExport element table
Ini-file
sys::IniFileGetGet a value from the ini file
sys::iniBoolGet/set a boolean value from the ini file (cache)
sys::iniIntGet/set a integer value from the ini file (cache)
sys::iniStringGet/set a string value from the ini file (cache)
sys::iniColorGet/set a color value from the ini file (cache)
Script
sys::ParserInfoGet (or initialize) a property of a class/material/layout/function
sys::DynamicCallDynamically call a script function or layout
sys::sptLocationReturn the location in the script file
Sub-system
Netlist definition
pda::makeNetlistCreate a PhoeniX netlist
pda::setInputNodeSet the input node of the netlist
pda::setOutputNodeSet the output node of the netlist
pda::createNodeCreate a node in the netlist
pda::findNodeSearch for a node netlist
pda::saveAsMaskEngineerSave netlist to MaskEngineer's layout framework
pda::saveAsOptoDesignerSave netlist to OptoDesigner's topview framework
File IO
pda::saveAtPdaflowSave generated '@pdaflow' include to file
pda::saveAsXmlSave netlist to XML
pda::readAsXmlRead netlist from XML
Foundry
pda::listFoundryList the available foundries
pda::makeFoundryUse a foundry
pda::listFlowsList the process flows
pda::createFlowUse a flow
pda::createFlowCrossSectionUse a flow to make a cross-section
pda::listCrossSectionList the cross-sections
pda::createCrossSectionUse a cross-section
pda::setCrossSectionSet active cross-section
pda::setFlowSet active flow
Properties
pda::listValuesWhat values/properties does this have
pda::addValueAdd a value/property
pda::setValueSet a value/property
Building blocks
pda::listBBList available building blocks
pda::createBBDefine a building block
pda::addBBAdd the building block to the netlist
pda::addNodeAdd a node to a building block
pda::getNodeFind a node of a building block
pda::makeOpticalSignalCreate a optical signal
pda::getOpticalSignalRangeSpecify wavelenght range
pda::makePortModeDefine the port-mode combination
pda::createSpectrumCreate a spectrum
pda::addFrequencyDefine spectral respons for a wavelength
pda::addSpectrumAdd spectral response to optical signal


Other topics

Sep 10, 2010Kamus functions
 Home
 Products
 `-Foundry
 `-Design
 `-Bundles
 News
 `-Archive
 `-Press releases
 Support
 `-Faq
 `-Application notes
news_kamus picture
 `-Downloads
 `-Trials
 `-Glossary
 `-Library
 About us
 `-Company profile
 `-Partners
 `-Distributors
 `-Projects
 `-Employment
 Other links
   Latest topics  Contact Location Info form