List of functions available in pylmgc90.chipy.chipy python module:

pylmgc90.chipy.chipy.AddDof2InBodies()[source]

Change reference coordinates to current coordinates. Usefull to generate a BODIES.OUT corresponding to current state.

Not available for 3D rigids!

pylmgc90.chipy.chipy.AssembleMechanicalLHS()[source]

Assemble the elementary matrices of mechanical deformable bodies.

pylmgc90.chipy.chipy.AssembleMechanicalRHS()[source]

Assemble the elementary right hand sides of mechanical deformable bodies.

pylmgc90.chipy.chipy.AssembleMultiLHS()[source]

Assemble the elementary matrices of multi-phasic deformable bodies.

pylmgc90.chipy.chipy.AssembleMultiRHS()[source]

Assemble the elementary right hand sides of multi-phasic deformable bodies.

pylmgc90.chipy.chipy.AssemblePoroLHS()[source]

Assemble the elementary matrices of porous deformable bodies.

pylmgc90.chipy.chipy.AssemblePoroRHS()[source]

Assemble the elementary right hand sides of porous deformable bodies.

pylmgc90.chipy.chipy.AssembleThermalLHS()[source]

Assemble the elementary matrices of thermal deformable bodies.

pylmgc90.chipy.chipy.AssembleThermalRHS()[source]

Assemble the elementary right hand sides of thermal deformable bodies.

pylmgc90.chipy.chipy.BinaryReadIniDof()[source]

Read initial values of degrees of freedom of a binary file (DATBOX/DOF.INI).

Rigids only !

pylmgc90.chipy.chipy.BinaryWriteLastDof()[source]

Write last values of degrees of freedom in a binary file (DATBOX/DOF.LAST).

Rigids only !

pylmgc90.chipy.chipy.BinaryWriteOutDof()[source]

Write current values of degrees of freedom in a binary file (DATBOX/DOF.xxxx.OUT).

Rigids only !

pylmgc90.chipy.chipy.CircularSelection(x, y, r)[source]

Select a subpart of a 2D sample to apply it post processing commands.

The subpart of the sample consists of all particles in a disk around a point.

parameters:

  • x: abscissa of the center of the disk
  • y: ordinate of the center of the disk
  • r: radius of the disk centered on (x;y).
pylmgc90.chipy.chipy.CloseDisplayFiles()[source]

Close containers of visualization files (*.pvd).

pylmgc90.chipy.chipy.ClosePostproFiles()[source]

Close post processing files.

pylmgc90.chipy.chipy.ComputeBulk()[source]

Compute rigidity/conductivity elementary matrices and internal forces for all bodies in the simulation.

pylmgc90.chipy.chipy.ComputeDof()[source]

Compute current values of displacement from the current velocities computed for all bodies in the simulation.

pylmgc90.chipy.chipy.ComputeFext()[source]

Evaluate the sum of the external forces during the current time step (due to gravity and boundary conditions) for all bodies in the simulation.

pylmgc90.chipy.chipy.ComputeFreeVelocity()[source]

Compute velocity free of interactions for all mechanical bodies in the simulation.

The contact detection configuration is also computed then, except if a the command ‘Integrator_SetContactDetectionConfiguration’ is used.

pylmgc90.chipy.chipy.ComputeMass()[source]

Compute mass/capacity elementary matrices for all bodies in the simulation.

pylmgc90.chipy.chipy.DisplayOutDof()[source]

Display the current values of all degrees of freedom in the simulation.

pylmgc90.chipy.chipy.DisplayOutRnod(ifrom, ito)[source]

Display the current values of reactions on all bodies.

pylmgc90.chipy.chipy.DisplayOutVlocRloc()[source]

Display the current values of every contacts.

pylmgc90.chipy.chipy.DisplayProxTactors()[source]

Display the list of contacts.

pylmgc90.chipy.chipy.ExSolver(type, norm, conv, relax, gsit1, gsit2)[source]

Run Non-linear Gauss Seidel contact solver.

parameters:

  • type: type of solver (‘Exchange Local Global’ or ‘Stored_Delassus_Loops’).
  • norm: type of norm (‘Quad’, ‘QM/16’, ‘Maxm’).
  • conv: convergence tolerance demanded.
  • relax: relaxation parameter.
  • gsit1: maximum number of convergence check before stopping.
  • gsit2: number of iterations of nlgs before checking convergence.
pylmgc90.chipy.chipy.FatalDamping(nb_step)[source]

Compute fatal damping if the current step number is a multiple of nb_step.

pylmgc90.chipy.chipy.FdSelectProxTactors()[source]

Special way of computing sphere/sphere contacts.

pylmgc90.chipy.chipy.Finalize()[source]

Close LMGC90.

pylmgc90.chipy.chipy.GetDimension()[source]

Get dimension of the simulation.

pylmgc90.chipy.chipy.IncrementStep()[source]

Prepare a new time step computation.

pylmgc90.chipy.chipy.Initialize()[source]

Initialize LMGC90 (and timers).

timer_GetNewTimer(xxx) must be called after this function.

pylmgc90.chipy.chipy.LoadBehaviours()[source]

Load behaviours read in BULK_BEHAV.DAT in bodies read from BODIES.DAT.

Must be called after: ReadBehaviours and ReadBodies.

pylmgc90.chipy.chipy.LoadModels()[source]

Load models read in MODELS.DAT in bodies read from BODIES.DAT and initialize property sets.

Must be called after: ReadModels and ReadBodies.

pylmgc90.chipy.chipy.LoadTactors()[source]

Load contactor modules from bodies.

Must be called after: ReadBodies and ReadIniDof.

pylmgc90.chipy.chipy.OpenDisplayFiles(ref_reac=0.0)[source]

Initialize visualization file writing.

pylmgc90.chipy.chipy.OpenPostproFiles()[source]

Initialize post processing files writing.

pylmgc90.chipy.chipy.ReadBehaviours()[source]

Read TACT_BEHAV.DAT and BULK_BEHAV.DAT files in DATBOX directory.

pylmgc90.chipy.chipy.ReadBodies()[source]

Read BODIES.DAT file in DATBOX directory.

pylmgc90.chipy.chipy.ReadDrivenDof()[source]

Read DRV_DOF.DAT file in DATBOX directory.

Must be called after ReadIniDof.

pylmgc90.chipy.chipy.ReadIniDof(step=0)[source]

Read DOF file. If step > 0 read OUTBOX/DOF.OUT.step file, otherwise read DATBOX/DOF.INI file Must be called after LoadBehaviours.

pylmgc90.chipy.chipy.ReadIniGPV(step=0)[source]

Read GPV.INI. If step > 0 read OUTBOX/GPV.OUT.step file, otherwise read DATBOX/GPV.INI file Must be called after LoadModels.

pylmgc90.chipy.chipy.ReadIniVlocRloc(step=0)[source]

Read VlocRloc file. If step > 0 read OUTBOX/VlocRloc.OUT.step file, otherwise read DATBOX/VlocRloc.INI file Must be called after LoadTactors.

pylmgc90.chipy.chipy.ReadModels()[source]

Read MODELS.DAT file in DATBOX directory and initialize external models.

pylmgc90.chipy.chipy.ReadMpBehaviours(disper=0.0, model='therm')[source]

Read and load multi-physics (for rigids) behaviours.

What is disper ?

pylmgc90.chipy.chipy.RecupRloc(tol=None)[source]

Try to get back state of interactions from last stocked interactions.

In each contact module: verlet -> this. Must be called before SelectProxTactors.

If tol is given in input, PLPLx_RecupRlocByPosition is used. To use the same type of function for PRPRx contact, use PRPRx_SetTolRecupRloc.

pylmgc90.chipy.chipy.SelectProxTactors(freq_detec)[source]

Run detections if current time step number is a multiple of freq_detec.

In case of PRPRx contact, one of next functions must be called:

  • PRPRx_UseCpCundallDetection
  • PRPRx_UseCpF2fExplicitDetection
  • PRPRx_UseCpF2fDetection
  • PRPRx_UseNcDetection
  • PRPRx_UseNcF2fDetection
  • PRPRx_UseNcF2fExplicitDetection
pylmgc90.chipy.chipy.SetContactRadius(radius)[source]

Set the contact radius for spher/spher or cylinder/cylinder contacts.

pylmgc90.chipy.chipy.SetDimension(dim, mod=1)[source]

Set dimension of the simulation and type of simulation.

possible values of mod:

  • 1 for PSTRAIN
  • 2 for PSTRESS
  • 3 for AXI
pylmgc90.chipy.chipy.SetDomainBoundary(Xmin=None, Xmax=None, Ymin=None, Ymax=None, Zmin=None, Zmax=None)[source]

Set active domain boundary for rigid bodies.

Only:

  • 2D: x | y boundary
  • 3D: x | y | z boundary
pylmgc90.chipy.chipy.SetNumberInteractionByContact(nb)[source]

Experimental: set the number of interaction by contact.

Available only for sphere/sphere and cylinder/cylinder contacts.

pylmgc90.chipy.chipy.SetPeriodicCondition(xperiod=None, yperiod=None)[source]

Set periodic conditions for rigid bodies.

Only:

  • 2D: x period for DKDKx, DKDKL and PLPLx.
  • 3D: x and y period for CDCDx, SPSPx, PRPRx and PTPT3
pylmgc90.chipy.chipy.SmoothForceComputation()[source]

Explicit computation of the contact forces.

Not available for every contact types.

pylmgc90.chipy.chipy.StockRloc()[source]

Stock state of interactions.

In each contact module: this -> verlet. Must be called after SelectProxTactors.

pylmgc90.chipy.chipy.UpdateStep()[source]

Update state.

Current time step values become begin time step values.

pylmgc90.chipy.chipy.UpdateTactBehav()[source]

Updates internal variables of interactions.

pylmgc90.chipy.chipy.WriteBehaviours()[source]

Write materials and contact laws in ascii files (OUTBOX/BULK_BEHAV.OUT and OUTBOX/TACT_BEHAV.OUT).

pylmgc90.chipy.chipy.WriteBodies()[source]

Write bodies in ascii file (OUTBOX/BODIES.OUT).

pylmgc90.chipy.chipy.WriteDisplayFiles(freq=1, ref_radius=1.0, normal_orient=True, **kw)[source]

Write visualization files if current time step number is a multiple of freq in DISPLAY directory.

ref_radius allows to normalize the size of the fries representing the interactions. Optional arguments are a tuple to add external fields to visualize in case a VTK.

pylmgc90.chipy.chipy.WriteDrivenDof()[source]

Write driven degrees of freedom in ascii file (OUTBOX/DRV_DOF.OUT).

pylmgc90.chipy.chipy.WriteLastDof()[source]

Write last degreees of freedom values in ascii file (OUTBOX/DOF.LAST).

pylmgc90.chipy.chipy.WriteLastGPV()[source]

Write last Gauss points values in ascii file (OUTBOX/GPV.LAST).

pylmgc90.chipy.chipy.WriteLastRnod()[source]

Write last nodal reaction in ascii file (OUTBOX/Rnod.LAST).

pylmgc90.chipy.chipy.WriteLastVlocRloc()[source]

Write last interactions values in ascii file (OUTBOX/VlocRloc.LAST).

pylmgc90.chipy.chipy.WriteMpBehaviours()[source]

Write Multi-physics ascii file in OUTBOX directory.

pylmgc90.chipy.chipy.WriteOutDof(nsteps)[source]

Write degrees of freedom of current time step in ascii file (OUTBOX/DOF.x.OUT where ‘x’ is the rank of the file) if current time step number is multiple of nsteps.

pylmgc90.chipy.chipy.WriteOutGPV(nsteps)[source]

Write current Gauss points values of all meshes (OUTBOX/GPV.x.OUT) if current time step number is a multiple of nsteps.

pylmgc90.chipy.chipy.WriteOutMpValues()[source]

Write multi-physics data at current time step in ascii file(s).

pylmgc90.chipy.chipy.WriteOutRnod(nsteps)[source]

Write current values of reaction for each bodies if current time step number is a multiple of nsteps.

pylmgc90.chipy.chipy.WriteOutVlocRloc(nsteps)[source]

Write values of every interactions if current time step number is a multiple of nsteps.

pylmgc90.chipy.chipy.WritePostproFiles()[source]

Write post processing files (POSTPRO/*.OUT).

pylmgc90.chipy.chipy.checkDirectories()[source]

Check if DATBOX directory exists (if not, it stops). Create OUTBOX, POSTPRO and/or DISPLAY directory if one does not exists.

pylmgc90.chipy.chipy.checkInteractiveCommand()[source]

Check if some specific files exist and react depending on the result:

  • file ‘stop’: write every possible .LAST files and exit.
  • file ‘save’: write every possible .OUT files.
  • file ‘display_now’: write every possible visualization files.

Previous topic

Kernel options

Next topic

List of functions available in pylmgc90.chipy.lmgc90 python module:

This Page