Copyright by Benedikt Oswald, 2002-2007, all rights reserved.
Objective: implementation file
#include "sibc1st.h"
Functions | |
USING_UG_NAMESPACE static USING_UGDIM_NAMESPACE INT | SIBC1stInit (NP_BASE *base, INT argc, char **argv) |
INT | InitSIBC1st (void) |
INT InitSIBC1st | ( | void | ) |
This function is used in the main program acheron3dlgm for checking the sibc1st numproc into the UG framework.
USING_UG_NAMESPACE static USING_UGDIM_NAMESPACE INT SIBC1stInit | ( | NP_BASE * | base, | |
INT | argc, | |||
char ** | argv | |||
) | [static] |
SIBC1stInit - initialization funtion for the NUMPROC 'NP_SIBC1ST_SOLVER'; the function is called when npinit <sibc1st> is executed in the UG script
assignment of the function (1) read all vector and matric descriptors and link the variable names of the UG script with the pointers to said structures stored within UG. (2) assemble global matrices TMAT, SMAT and RMAT, if losses shall be considered in the computation
calling syntax for npinit <SIBC1st> is:
npinit <sibc1st> $EP efldp $EN efldpn $EM efldm $RHS rhs $TMAT tmat $RMAT rmat $SMAT smat $DT 10.0e-12;
where $EP efldp -> VECDATA_DESC structure for electric field along the edges of the element at time t_(n+1) $EN efldn -> VECDATA_DESC structure for electric field along the edges of the element at time t_(n) $EM efldm -> VECDATA_DESC structure for electric field along the edges of the element at time t_(n-1)
$RHS rhs -> VECDATA_DESC structure for the right-hand side of the linear system to be solved for
$TMAT tmat -> MATDATA_DESC structure for matrix containing the T matrix $RMAT rmat -> MATDATA_DESC structure for matrix containing the R matrix (losses) $SMAT smat -> MATDATA_DESC structure for matrix containing the S matrix $PRMAT smat -> MATDATA_DESC structure for matrix containing the PR resistive sibc matrix $PLMAT smat -> MATDATA_DESC structure for matrix containing the PL inductive sibc matrix
$DT 1.0e-12 -> DOUBLE value for the time step in the explicit scheme
now, compute surface resistance and surface inductance