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

Boundary condition service #154

Merged
merged 4 commits into from
Aug 30, 2024

Conversation

mohd-afeef-badri
Copy link
Collaborator

No description provided.

@mohd-afeef-badri
Copy link
Collaborator Author

mohd-afeef-badri commented Aug 29, 2024

@grospelliergilles It will be nice if you can please review this PR. Also for now I my manufactured solution case in fourier module is not fully delegated to the boundary-condition service from femutils. I am still struglling with these lines of code

  if (options()->manufacturedSolution.isPresent()) {
    const auto& bs = options()->manufacturedSolution()[0];

    if (bs->manufacturedSource.isPresent()) {
      ICaseFunction* opt_function_source = bs->manufacturedSource.function();
      IStandardFunction* scf_source = bs->manufacturedSource.standardFunction();
      if (!scf_source)
        ARCANE_FATAL("No standard case function for option 'manufactured-source-condition'");
      auto* functorS = scf_source->getFunctorRealReal3ToReal();
      if (!functorS)
        ARCANE_FATAL("Standard function '{0}' is not convertible to f(Real,Real3) -> Real", opt_function_source->name());
      m_manufactured_source = functorS;
    }

    if (bs->manufacturedDirichlet.isPresent()) {
      ICaseFunction* opt_function = bs->manufacturedDirichlet.function();
      IStandardFunction* scf = bs->manufacturedDirichlet.standardFunction();
      if (!scf)
        ARCANE_FATAL("No standard case function for option 'manufactured-dirichlet-condition'");
      auto* functor = scf->getFunctorRealReal3ToReal();
      if (!functor)
        ARCANE_FATAL("Standard function '{0}' is not convertible to f(Real,Real3) -> Real", opt_function->name());
      m_manufactured_dirichlet = functor;
    }
  }

in particulare ICaseFunction* and IStandardFunction* how to get these via the service ?

@grospelliergilles
Copy link
Member

grospelliergilles commented Aug 30, 2024

Thanks for the PR.
There is no simple way to do that actually but I will add it to the AXL generator.
I do it today : see arcaneframework/framework#1601

@mohd-afeef-badri mohd-afeef-badri merged commit ad3d5c2 into main Aug 30, 2024
4 checks passed
@mohd-afeef-badri mohd-afeef-badri deleted the dev/mab/boundary-conditions-service branch August 30, 2024 13:20
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