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

I want to change the values of f and g mentioned in the paper in the original code, how do I make the changes? #102

Closed
weijunsjtu opened this issue Sep 25, 2023 · 1 comment

Comments

@weijunsjtu
Copy link

I want to change the values of f and g mentioned in the paper in the original code, how do I make the changes?

@EdoAlvarezR
Copy link
Collaborator

EdoAlvarezR commented Sep 25, 2023

The VPM formulation is being passed to the run_simulation(...) function here: LINK, which defaults to FLOWVPM.rVPM. The default rVPM formulation is defined here as

formulation_rVPM = FLOWVPM.ReformulatedVPM{FLOWVPM.RealFMM}(0, 1/5)

where 0 is the value of f and 1/5 is the value of g. To use an alternative formulation, simply change those values in the script you use for running your simulation as follows

import FLOWUnsteady as uns
import FLOWVPM as vpm

.
.
.

f =             # <----- Insert value here
g =             # <----- Insert value here
myVPMformulation = vpm.ReformulatedVPM{vpm.RealFMM}(f, g)
.
.
.
run_simulation(args...; optargs..., vpm_formulation=myVPMformulation)

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

No branches or pull requests

2 participants