GithubHelp home page GithubHelp logo

ornl / cabanapf Goto Github PK

View Code? Open in Web Editor NEW
4.0 4.0 2.0 115 KB

Phase-field with Cabana

License: BSD 3-Clause "New" or "Revised" License

CMake 8.25% C++ 91.75%
cabana computational-materials-science kokkos phase-field

cabanapf's People

Contributors

davidjoy8 avatar streeve avatar stvdwtt avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

streeve davidjoy8

cabanapf's Issues

Use new Cabana grid output

With Cabana#744, Cabana now supports specifying the filename when using BOVwriter. This will remove dependency on std::filesystem for outputing on Frontier, allowing us to get c grids on Frontier.

Rename files

Proposed renaming test files in #16; also useful to prepend all source files with CabanaPF_ for clarity and shared installs

Code clean up

Here are a list of suggestions for cleaning up the code from its state in !7. None of these involve correctness, but are more focused on usability. These changes, if we decide to make them, can be after the 0.1 release if necessary.

  • Users will want to vary CabanaPF::PFHub1aBase::END_TIME since that isn't given in the spec (and we've discussed this in terms of the PFHub upload). It should be an option at construction (a default of 250 is ok).
  • The "PerformanceRuns" executable should also be able to have a user-set time step and/or number of time steps so you can do individual runs like the "PFHub1a_Benchmark" and "PFHub1a_Periodic" collection of calculations.
  • The main functions the "Benchmark" cases are only 40 lines, but they are identical except for which child of PFHub1aBase they use. It seems more intuitive to merge them into one function with a selection statement for which case to run based on e.g. a command line argument. Maybe you could do something fancy with base class pointers so that you only have to do that selection statement once? (Not something that I'm very strong with.)
  • I'm not sure that using fft for a forward transform and ifft for an inverse transform in CabanaPF::PFVariables is the most intuitive, unless that's standard elsewhere. I prefer the interface that FFTW and heFFTe use, where you're specifying "forward" or "inverse". I'd prefer fft_forward and fft_inverse.
    Since the code is written to work in both 2 and 3 dimensions, it should have a 3D test

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.