Effacer les filtres
Effacer les filtres

Specify boundary conditions for each node - Thermal problem

3 vues (au cours des 30 derniers jours)
Pierluigi
Pierluigi le 27 Déc 2023
Modifié(e) : Torsten le 27 Déc 2023
I want to specify boundary conditions for each node of a specific edge using the MATLAB PDE modeler toolbox. Essentially, I have the heat flux at each node of an edge (as an array) and I want to give this information as BC for another simulation.
Is it possible to do so. How?

Réponses (1)

Torsten
Torsten le 27 Déc 2023
Modifié(e) : Torsten le 27 Déc 2023
Supply your array or matrix "Data" as an additional input to "mygfun" and "myqfun" and use interpolation to supply the values for g and q at the positions required by the PDE Toolbox.
applyBoundaryCondition(model,"neumann", ...
"Face",2, ...
"g",@(location,state)mygfun(location,state,Data),...
"q",@(location,state)myqfun(location,state,Data));

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by