calculate electric_resistance command
Purpose
This command calculates the electric resistance of a particle bed formed between two solid walls.
Warning
GPU support for this command has not been tested and may not work as expected.Syntax
calculate electric_resistance keyword keyword/value pairs
Keywords |
Description |
|---|---|
id |
user-assigned name for the calculate electric_resistance command |
obligatory, brace-enclosed list of mesh ids
available options:
{mesh1,mesh2, ...} |
|
obligatory, id of the mesh that is used as reference
|
The keywords from the enable_electrical_conductivity command
are also relevant for the calculate electric_resistance, except particle_group,
which is always set to all, and enable_electric_heating, which is ignored by this command.
Examples
calculate electric_resistance id Ohmmeter probes {lower_battery} reference upper_battery
calculate electric_resistance id AnotherOhmmeter probes {batteryA, batteryB} reference battery_ref use_central_distance no hypre_full_output yes
Access the calculated values above via:
id_Ohmmeter.lower_battery or id_Ohmmeter[1] id_AnotherOhmmeter.batteryA or id_AnotherOhmmeter[1] id_AnotherOhmmeter.batteryB or id_AnotherOhmmeter[2]
Description
This command calculates the electric resistance of a particle bed confined between two solid walls: the probe wall and the reference wall.
The probe and reference walls are specified using the probes and reference keywords, respectively.
If more than one wall is specified by the probes keyword, a different computation is performed for
each probe wall, and the corresponding results can be accessed as in the example above.
If the particle bed is confined by more than two walls, the calculated resistance is still the resistance of the bed between the probe wall and the reference wall. Thus, the electric resistance calculated by this command is a property of the trio formed by (i) the particle bed, (ii) probe wall, and (iii) reference wall. In this case, different values for the electric resistance can be obtained for the same particle bed, if the probe or reference walls are different for each computation.
This command uses the functionalities of the enable_electrical_conductivity command and therefore the parameters related to the matrix solver (HYPRE), the definition of the electric resistance of each contact, and so on are also relevant for this command. If those keywords are not set by the user, the default values will be used: see the list of keywords of enable_electrical_conductivity.
Output information
Two different options are available for getting the output of this command: see the example above. The output of this command is automatically written to the file simulation_data_aspherix.csv.
Restrictions
This command always outputs zero at the first iteration after a restart.