sfepy/sfepy — Issue #24: new input syntax for variables
Author: rc
Created: 2012-01-30 10:24:09+00:00
State: open

Same motivation as Issue 19.

old syntax:
variables = {
'uc' : ('field', 'unknown', '3_displacement', (0, 1, 2), 0),
'vc' : ('field', 'test', '3_displacement', (0, 1, 2), 'uc'),
'Pi' : ('field', 'parameter', '3_displacement', (0, 1, 2)),
}

new syntax:
variable_1 = {
'name' : 'uc',
'type' : 'unknown field',
'field' : '3_displacement',
'dofs' : (0, 1, 2),
'order' : 0, # order in the global vector of unknowns, specific to
'unknown' variables
}
variable_2 = {
'name' : 'vc',
'type' : 'test field',
'field' : '3_displacement',
'dofs' : (0, 1, 2), # redundant?
'dual' : 'uc', # not sure about name, specific to 'test' variables
}
variable_3 = {
'name' : 'Pi',
'type' : 'parameter field',
'field' : '3_displacement',
'dofs' : (0, 1, 2), # redundant?
}

Migrated from http://code.google.com/p/sfepy/issues/detail?id=20

earlier comments

robert.cimrman said, at 2008-02-18T15:48:30.000Z:

Implemented:

variable_1 = {
'name' : 'u',
'kind' : 'unknown field',
'field' : '2_displacement',
'dofs' : (0, 1),
'order' : 0,
}
('type' -> 'kind')