Setting boundary conditions using the Fortran interface #3310
Closed
Mephiiistopheles
started this conversation in
General
Replies: 1 comment 1 reply
-
Maybe you can look at Tests/FortranInterface/Advection_F/Source/fillpatch_mod.F90 as an example. To set velocity at -x boundary, it can be something like below. (Note that it may not compile, because I did not test.)
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Are there any tutorials that demonstrate how different boundary conditions (e.g. Dirichlet) can be set via the Fortran interface? I'm just getting start with AMReX and thought that modifying the Advection_octree_F tutorial example to use different boundary conditions would be a good start. The basic idea was to replace the periodic conditions with a 5 m/s velocity condition at the -x boundary, outflow at the +x boundary and slip/non-slip conditions at the -y and +y boundaries such that the 'blob' is advected out of the domain.
I found that this was straightforward enough in C++, but seem to have run into a wall with the Fortran version of the tutorial (which is unfortunate, because I ultimately plan to use this interface due to legacy code). It seems that the fill_physbc subroutine needs to be modified for this case, but I'd greatly appreciate any tips/guidance on this one.
Beta Was this translation helpful? Give feedback.
All reactions