thegooglecodearchive / sfepy

Automatically exported from code.google.com/p/sfepy
0 stars 0 forks source link

new input syntax for boundary conditions #19

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
This is motivated by needing different sets of boundary conditions for
various subproblems of a single computation, namely solving the subproblems
for the corrector functions of micro-problems related to a homogenization
of porous media.

EBC = essential BC

old syntax:
ebc = {
    'Corners' : (('fixed_u', (0, 1, 2), 0.0 ),),
    'EBCGammaI' : (('fixed_p_zero', (8,), 0.0),), # % variantI
    'EBCGamma' : (('fixed_p_one', (8,), 1.0),), # % variant
}

new syntax (similar to regions, solvers, ...):
ebc_1 = {
    'name' : 'fixed_u',
    'region' : 'Corners',
    'dofs' : (0, 1, 2),
    'value' : 0.0
}
ebc_2 = {
    'name' : 'fixed_p_zero',
    'region' : 'EBCGammaI',
    'dofs' : (8,),
    'value' : 0.0
}
ebc_3 = {
    'name' : 'fixed_p_one',
    'region' : 'EBCGamma',
    'dofs' : (8,),
    'value' : 1.0
}

The used EBC could then be selected by their names and combined at wish.

Similarly should be updated also LCBC (linear combination BC) and EPBC
(periodic BC).

Original issue reported on code.google.com by robert.c...@gmail.com on 14 Feb 2008 at 9:43

GoogleCodeExporter commented 9 years ago

Original comment by robert.c...@gmail.com on 14 Feb 2008 at 9:43

GoogleCodeExporter commented 9 years ago
Also: order of EBC application will be given by the lexicographical ordering of 
their
definition names ('ebc_0' < 'ebc_020' < 'ebc_10').

Original comment by robert.c...@gmail.com on 18 Feb 2008 at 2:12

GoogleCodeExporter commented 9 years ago
Implemented as discussed above.

Original comment by robert.c...@gmail.com on 18 Feb 2008 at 3:47

GoogleCodeExporter commented 9 years ago
Migrated to http://github.com/sfepy/sfepy/issues/23

Original comment by robert.c...@gmail.com on 30 Jan 2012 at 10:24