Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
amlucas committed Jan 19, 2023
1 parent 2196411 commit f3fb1a9
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion docs/source/mmirheo/Plugins/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@ def createAddFourRollMillForce():
pass

def createAddPotentialForce():
r"""createAddPotentialForce(state: MirState, name: str, pv: ParticleVectors.ParticleVector, potential_field: Callable[[real3], float], h: real3) -> Tuple[Plugins.SimulationPlugin, Plugins.PostprocessPlugin]
r"""createAddPotentialForce(*args, **kwargs)
Overloaded function.
1. createAddPotentialForce(state: MirState, name: str, pv: ParticleVectors.ParticleVector, potential_field: Callable[[real3], float], h: real3) -> Tuple[Plugins.SimulationPlugin, Plugins.PostprocessPlugin]
Add a force :math:`\mathbf{F}_{extra}` to each particle of a specific PV every time-step.
Expand All @@ -61,6 +64,19 @@ def createAddPotentialForce():
h: grid spacing used to discretize the potential field
2. createAddPotentialForce(state: MirState, name: str, pv: ParticleVectors.ParticleVector, potential_field_filename: str, h: real3) -> Tuple[Plugins.SimulationPlugin, Plugins.PostprocessPlugin]
Add a force :math:`\mathbf{F}_{extra}` to each particle of a specific PV every time-step.
The force is the negative gradient of a potential field at the particle position.
Args:
name: name of the plugin
pv: :any:`ParticleVector` that we'll work with
potential_field_filename: file that contains the potential field on a cartesian grid. Same format as Sdf for walls.
h: grid spacing used to discretize the potential field
"""
pass

Expand Down

0 comments on commit f3fb1a9

Please sign in to comment.