File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -212,6 +212,10 @@ class CustomField(ExportBaseClass):
212212 function : fem .Function
213213 writer : io .VTXWriter
214214 dolfinx_expression : fem .Expression
215+ expression : Callable
216+ species_dependent_value : dict [str , Species ]
217+ subdomain : VolumeSubdomain
218+ checkpoint : bool
215219
216220 def __init__ (
217221 self ,
@@ -235,9 +239,17 @@ def __init__(
235239 def set_dolfinx_expression (
236240 self ,
237241 temperature : fem .Constant | fem .Function ,
238- species : list ,
239242 time : fem .Constant ,
240243 ):
244+ """
245+ Set the dolfinx expression used to evaluate the custom field. This is done by
246+ evaluating the user-provided expression with the appropriate arguments and using
247+ the result to create a dolfinx expression.
248+
249+ Args:
250+ temperature: The temperature field to use in the expression
251+ time: The time to use in the expression
252+ """
241253 # check
242254 arguments = inspect .signature (self .expression ).parameters
243255 kwargs = {}
Original file line number Diff line number Diff line change @@ -453,7 +453,6 @@ def initialise_exports(self):
453453 export .function = fem .Function (self .V_CG_1 )
454454 export .set_dolfinx_expression (
455455 temperature = self .temperature_fenics ,
456- species = self .species ,
457456 time = self .t ,
458457 )
459458
@@ -1695,7 +1694,6 @@ def initialise_exports(self):
16951694 export .function = fem .Function (V )
16961695 export .set_dolfinx_expression (
16971696 temperature = self .temperature_fenics , # need to pass the right temperature
1698- species = self .species ,
16991697 time = self .t ,
17001698 )
17011699
You can’t perform that action at this time.
0 commit comments