assignment of primary fields missing
Posted: Thu Jul 28, 2016 11:40 am
At the moment the DiffusionProblem {} assumes that the first defined field is the temperature and the second defined field is the RH field - both the primary fields of a specific diffusion problem.
This is not necessarily clear to the user and potentially introduces problems in the future, e.g. if we operate with different diffusion material subroutines on the same fields.
Since we are using fieldlabels for everything else I suggest to have a mapping command - that links the available fields to the different materials.
Something like
Field Temperature T1 {
InitialValue 293 degK
CrankNicolsonTolerance 1e-9
EnableRate TR // Rate
}
Field RelativeHumidity RH1 {
InitialValue 0.999 1
CrankNicolsonTolerance 1e-9
EnableRate RHR //Rate
}
DiffusionMaterialFields diffmat1 { // concrete
TemperatureField T1
RelativeHumidityField RH1
}
DiffusionMaterialFields diffmat2 { // steel
TemperatureField T1
}
This is not necessarily clear to the user and potentially introduces problems in the future, e.g. if we operate with different diffusion material subroutines on the same fields.
Since we are using fieldlabels for everything else I suggest to have a mapping command - that links the available fields to the different materials.
Something like
Field Temperature T1 {
InitialValue 293 degK
CrankNicolsonTolerance 1e-9
EnableRate TR // Rate
}
Field RelativeHumidity RH1 {
InitialValue 0.999 1
CrankNicolsonTolerance 1e-9
EnableRate RHR //Rate
}
DiffusionMaterialFields diffmat1 { // concrete
TemperatureField T1
RelativeHumidityField RH1
}
DiffusionMaterialFields diffmat2 { // steel
TemperatureField T1
}