8000 Add interpolation to powder fill example by streeve · Pull Request #213 · ORNL/CabanaPD · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add interpolation to powder fill example #213

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

streeve
Copy link
Collaborator
@streeve streeve commented May 15, 2025

Powder to continuum demonstration

Before merging

  • Move to separate example
  • Clean up use of type field vs physical/relative density

@streeve streeve requested a review from pabloseleson May 15, 2025 14:51
@streeve streeve self-assigned this May 15, 2025
@@ -0,0 +1,38 @@

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This function misses the copyright notice.

Also, it seems the ability to interpolate would be helpful for other fields, not just density.

@@ -479,7 +479,7 @@ class Particles<MemorySpace, PMB, TemperatureIndependent, BaseOutput, Dimension>
v( pid, d ) = 0.0;
f( pid, d ) = 0.0;
}
type( pid ) = 0;
type( pid ) = 1;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why changing type from 0 to 1?

Why rho = 1 below?

@pabloseleson
Copy link
Collaborator

In powder_fill.json, we have:
"radius" : {"value": 2.5e-3},
"radius_extend" : {"value": 2.5e-3},

Should these include units?

// ====================================================
// Interpolate for consolidation
// ====================================================
// Do this first to get the coarser grid.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this example suppose to run the powder setting first and then interpolate the final density profile and output to a file? (just making sure I understand)

Also, any reason to choose a coarser grid of half the number of cells per dimension? Is this an arbitrary choice?

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

Successfully merging this pull request may close these issues.

2 participants
0