You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, @prudhomm@vincentchabannes@romainhild
would it be possible to add an example on how to implement new BC conditions?
I'm thinking of BiotSavart , for instance, to compute Dirichlet conditions from a given formula or a call to a dedicated library.
The text was updated successfully, but these errors were encountered:
The easier I think is to add it directly in the lambda function.
Something like:
if ( tb->modelProperties().boundaryConditions().hasSection( tb->keyword() ) )
{
auto jarg = tb->modelProperties().boundaryConditions().section( tb->keyword() );
if ( jarg.contains( "mynewbc" ) )
{
autoconst& j_bc = jarg.at( "mynewbc" );
for ( autoconst& [j_bckey,j_bcval] : j_bc.items() )
{
// here implement your boundary condition// j_bckey is the name of one bc of type "mynewbc"// j_bcval is the json section where you can have anything you want (markers, expr, path to a script to run,...)
}
}
}
Hi,
@prudhomm @vincentchabannes @romainhild
would it be possible to add an example on how to implement new BC conditions?
I'm thinking of BiotSavart , for instance, to compute Dirichlet conditions from a given formula or a call to a dedicated library.
The text was updated successfully, but these errors were encountered: