-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
218-reduced-basis-module-document-fails-to-execute-in-jupyter #219
218-reduced-basis-module-document-fails-to-execute-in-jupyter #219
Conversation
thomas-saigre
commented
Nov 7, 2022
•
edited
Loading
edited
- reduced basis module document fails to execute in jupyter #218
- fix errors due to bad xref or include
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the testcase is never presented I think.
Recall the equations and the objectives from a mathematical point of view.
|
||
[source, python] | ||
---- | ||
config = feelpp.globalRepository("reducedbasis") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use localRepository("reducedbasis")
for jupyter
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
or localRepository("")
- `config_file` : path to the cfg file | ||
- `dim` : the dimension of the case | ||
- `order` : the order of discretization (`1` for stem:[\mathbb{P}_1], `2` for stem:[\mathbb{P}_2]) | ||
- `time_dependant` : is the case stationnary or transient ? (for now always to `False`) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
type : dependent (e not a)
heatBox.init() | ||
model = toolboxmor(dim=DIM, time_dependent=False) | ||
model.setFunctionSpaces( Vh=heatBox.spaceTemperature()) | ||
config_file = "thermal-fin.cfg" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is not robust. Do you create the file ? or should it be available somewhere ?
|
||
[source,python] | ||
---- | ||
cfg = feelpp.readCfg(config_file) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what is this function readCfg
?
---- | ||
cfg = feelpp.readCfg(config_file) | ||
feelpp.Environment.setConfigFile(config_file) | ||
---- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no expected output provided ?
output_names.append(n) | ||
|
||
print(f"Outputs of the models are {output_names}") | ||
---- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no output provided ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what should we expect ?
---- | ||
modelParameters = heatBox.modelProperties().parameters() | ||
default_parameter = modelParameters.toParameterValues() | ||
---- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we expect something ?
print the parameter may be ?
---- | ||
|
||
|
||
[source, python] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
describe the next block with respect to the math (affine decomposition...)
[slepc4py] number of (smaller) eigenvalues computed : 16 | ||
[reducedbasis] Constant of coercivity : 0.9999999999999977 | ||
[slepc4py] number of eigenvalues computed : 16 | ||
[reducedbasis] Constant of continuity : 1.0000000000000018 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
continuity and coercivity are the same ? does it mean that the parameter for use is the one for the scalar product ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
make a note for this
@thomas-saigre I have merged your changes as it fixes things. However could you add some more explanations ? |
@thomas-saigre I didn't delete the branch, you can still work in it |
* write doc about : - parameters - petsc vectors - petsc matrix Write documentation on python x feel++ modules #151 [ci skip] * add documentation about parameters see commit feelpp/feelpp@9512e77 [ci skip] * add documentation about ModelProperties in python #151 * add documentation about functions wrapped in feelpp/feelpp@84a845d * up doc about `feelpp.mor._mor.ParameterSpace.New` [ci skip] * update doc according to feelpp/feelpp@2f3b94a * write documentation about online / offline usage * add title to the page [ci skip] * write doc about last modifications * move modelproperties to right directory * add details for `generate_basis` (and fix table of content) * fix nav to display rbm [ci skip] * doc : complete documentation about `reducedbasis` : offline and online * Update reducedbasis_online.adoc * add more details about reducedbasis in python #219 #151 /cc @prudhomm * fixes of some typos and remove files in double close #151