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

circle position #31

Closed
vahhab1370 opened this issue Nov 16, 2021 · 1 comment
Closed

circle position #31

vahhab1370 opened this issue Nov 16, 2021 · 1 comment

Comments

@vahhab1370
Copy link

Hello again,

I am wondering how to define the position of the circle as:

x= a y=b, where a and be are not the same

n=32^7
m=2
2^7
radius=m/6
center, ν = m/2, radius/Re
body = AutoBody((x,t)->norm2(x .- center) - radius)
sim=Simulation((n+2,m+2), [1.,0.], radius; ν, body)

with this code, x=y=m/6

Thank you

@weymouth
Copy link
Collaborator

This isn't really a WaterLily issue, you just need to learn about tuples work in Julia. Just use center = (a,b).

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