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

Time Step estimators #12

Open
AlejandroMunozManterola opened this issue Feb 1, 2023 · 3 comments
Open

Time Step estimators #12

AlejandroMunozManterola opened this issue Feb 1, 2023 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@AlejandroMunozManterola
Copy link
Collaborator

AlejandroMunozManterola commented Feb 1, 2023

The manual and seemingly random selection of Local Time Stepping (LTS) for problem definition can be trivialised by the implementation of a simple LTS algorithm that takes into account the minimum distance between two nodes found through all the elements of the Finite Element Space, the order of the Finite Element Collection, the speed of the signal and the Courant–Friedrichs–Lewy coefficient.

@AlejandroMunozManterola AlejandroMunozManterola added the enhancement New feature or request label Feb 1, 2023
@AlejandroMunozManterola
Copy link
Collaborator Author

AlejandroMunozManterola commented Feb 1, 2023

A basic algorithm has been implemented.

If the user chooses to, they can input a manual time stepping value which will be respected. If no input is entered, the solver will automatically calculate the LTS based on the following formula:

$\Delta t = {{CFL {}\cdot{} h} \over {N^{3/2}{}\cdot{} c}}$

Where CFL is the Courant–Friedrichs–Lewy coefficient, which can be manually adjusted with the .setCFL(double) method, h is the minimum internode distance, N is the Finite Element Collection order and c is the signal speed.

@lmdiazangulo lmdiazangulo changed the title Local Time Stepping Time Step estimators Feb 1, 2023
@lmdiazangulo
Copy link
Contributor

lmdiazangulo commented Feb 1, 2023

Maybe we could use power method to extract an estimation of $\Delta t$ . Check mfem's example 9

@lmdiazangulo lmdiazangulo reopened this Feb 1, 2023
@AlejandroMunozManterola
Copy link
Collaborator Author

AlejandroMunozManterola commented Jun 15, 2023

2D estimators have been implemented for triangular meshes, following the inscribed circle estimation.

See commit 926b570 for more info.

Code compiles but feature does not work due to issue with Mesh in const Model.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants