field_p = Field.from_args('fp', nm.float64, 1, omega,
approx_order=order_p)
press_load = Function('press_load',get_pressure_load)
press = FieldVariable('pressure','parameter',field_p,special={'setter':press_load},
primary_var_name='(set-to-None)')
And the corresponding term:
t20 = Term.new('dw_laplace(matalpha.k, q, press)',
integral, omega, matalpha=matalpha, q=q, press=press)
But this does not work.
Any thoughts?
Thanks
field = Field.from_args('fu', nm.float64, 'vector', omega, approx_order=1)
press_load = Function('press_load',get_pressure_load)
functions = Functions([press_load])
press = FieldVariable('pressure','parameter',field,special={'setter':'press_load'}, primary_var_name='(set-to-None)')
t4 = Term.new('dw_biot(matalpha.alpha, v, p)', integral, omega, matalpha=matalpha, v=v, p=press)
eq_elastic = Equation('Elastic',t1-t3-t3_hmax-t3_hmin-t4)
I get an error at this line:
Traceback (most recent call last):
File "fractures_shadow.py", line 414, in <module>
main()
File "fractures_shadow.py", line 312, in main
eqs = Equations([eq_elastic])
File "/Users/adantra/anaconda/envs/default/lib/python2.7/site-packages/sfepy/discrete/equations.py", line 82, in __init__
self.collect_conn_info()
File "/Users/adantra/anaconda/envs/default/lib/python2.7/site-packages/sfepy/discrete/equations.py", line 187, in collect_conn_info
eq.collect_conn_info(self.conn_info)
File "/Users/adantra/anaconda/envs/default/lib/python2.7/site-packages/sfepy/discrete/equations.py", line 801, in collect_conn_info
conn_info[key] = term.get_conn_info()
File "/Users/adantra/anaconda/envs/default/lib/python2.7/site-packages/sfepy/terms/terms.py", line 728, in get_conn_info
is_trace = self.arg_traces[pvar.name]
KeyError: 'press'
I am pretty sure it is related to the way I am defining the Field Variable but I don't know how to fix it. Any suggestion?
Regards,
Adolfo
--
You received this message because you are subscribed to a topic in the Google Groups "sfepy-devel" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/sfepy-devel/vlwtFrdnWgw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to sfepy-devel...@googlegroups.com.
To post to this group, send email to sfepy...@googlegroups.com.
Visit this group at https://groups.google.com/group/sfepy-devel.