lanl / dfnWorks

dfnWorks is a parallelized computational suite to generate three-dimensional discrete fracture networks (DFN) and simulate flow and transport. If you download the software please fill out our interest form to stay up to date on releases https://goo.gl/forms/VE39oKsyp4LVC6Gj2 and join our google group https://groups.google.com/d/forum/dfnworks-users . Precompiled Docker Container https://hub.docker.com/r/ees16/dfnworks
https://dfnworks.lanl.gov/
Other
73 stars 42 forks source link

eNumPoints #53

Closed hymanjd closed 1 year ago

hymanjd commented 1 year ago

It looks like modifying eNumPoints isn't working in 2.7.

Fracture Family order was not changed Traceback (most recent call last): File "/Users/jhyman/src/dfnworks-jdhdev/examples/TPL/TPL_example.py", line 53, in DFN.check_input() File "/Users/jhyman/.local/lib/python3.9/site-packages/pydfnworks-2.7-py3.9.egg/pydfnworks/dfnGen/generation/input_checking/check_input.py", line 95, in check_input self.params = self.write_fracture_families() File "/Users/jhyman/.local/lib/python3.9/site-packages/pydfnworks-2.7-py3.9.egg/pydfnworks/dfnGen/generation/input_checking/add_fracture_family_to_params.py", line 29, in write_fracture_families add_fracture_family_to_params(self.params, self.fracture_families[i]) File "/Users/jhyman/.local/lib/python3.9/site-packages/pydfnworks-2.7-py3.9.egg/pydfnworks/dfnGen/generation/input_checking/add_fracture_family_to_params.py", line 115, in add_fracture_family_to_params write_value_to_params(params, 'numPoints', fracture_family, File "/Users/jhyman/.local/lib/python3.9/site-packages/pydfnworks-2.7-py3.9.egg/pydfnworks/dfnGen/generation/input_checking/add_fracture_family_to_params.py", line 327, in write_value_to_params params[fracture_type_prefix + param_key]['value'].append(value) AttributeError: 'int' object has no attribute 'append'

aidanstansberry commented 1 year ago

Got it, I will get to work on this.

aidanstansberry commented 1 year ago

Before I go too far down this road, try to add add_fracture_family( number_of_points = 8 #(specifies the number of vertices defining the boundary of each fracture. default = 8)

hymanjd commented 1 year ago

Well, that worked. Issue closed.