You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I also like the idea. There is a couple of practical things needs to be solved.
The first problem is that the field is created on the fly at the first time when something is updated to that field. So we are not aware of the internal structure before calling update!. We should initialize field beforehand to know its dimension and data type. On the other hand, it's not a bad idea of having e.g. create_field! which is called at the first time. Explicit is better than implicit and now we are implicitly creating new fields given new names. We also need a way to update tensor fields using the same logic.
Another problem I see is that if we update values for e.g. values (1, 3) like in the example, what is the value of the field for the second component? I agree we should have better ways to control multidimensional fields, but it sounds a bit that we need to make those implementations to fields.jl and define new types of fields.
Maybe element("displacement load", ip, time) could return something like (1.0, NaN, 2.0), 3 in the case where not all components of a field are not defined.
Right now, a load is applied to a set of dimensions by giving a string with the dimension after the name of the load, for example
means we apply a load in dimension 1 and 2.
In the problem this is then checked using something like
I would argue that it would be better to specify the dimensions in some type of vector instead of in a string, for example:
and the code using the load would get the dimensions it is applied to and the value as
This would require fewer dictionary looksups and be a bit more "Julian".
The text was updated successfully, but these errors were encountered: