Skip to content
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

Conversation

thomas-saigre
Copy link
Contributor

@thomas-saigre thomas-saigre commented Nov 7, 2022

@thomas-saigre thomas-saigre linked an issue Nov 7, 2022 that may be closed by this pull request
Copy link
Member

@prudhomm prudhomm left a 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")
Copy link
Member

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

Copy link
Member

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`)
Copy link
Member

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"
Copy link
Member

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)
Copy link
Member

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)
----
Copy link
Member

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}")
----
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no output provided ?

Copy link
Member

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()
----
Copy link
Member

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]
Copy link
Member

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
Copy link
Member

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 ?

Copy link
Member

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

@prudhomm prudhomm merged commit d6020e9 into develop Nov 7, 2022
@prudhomm
Copy link
Member

prudhomm commented Nov 7, 2022

@thomas-saigre I have merged your changes as it fixes things. However could you add some more explanations ?

@prudhomm
Copy link
Member

prudhomm commented Nov 7, 2022

@thomas-saigre I didn't delete the branch, you can still work in it

@thomas-saigre
Copy link
Contributor Author

@prudhomm I have pushed some modifications in the branch saigre/pyfeelpp that needed to be updated and merged, see #222

prudhomm pushed a commit that referenced this pull request Nov 16, 2022
* 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

reduced basis module document fails to execute in jupyter
2 participants