Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.
Boundary Intergration Coupling Variables
Posted 5 nov. 2009, 08:54 UTC−5 1 Reply
Please login with a confirmed email address before reporting spam
Hello,
For my problem, i need to define two boundary integration coupling variables. 1 calculating the force(integration of pressure), outside of a surface and the other calculating this force on the inside. Later i can use a global expression to calculate the difference between the two.
However i am having difficulties trying to scirpt this in Matlab. I've tried doing it in Comsol but to no affect. Problem is both coupling variables so up at each group of boundaries while only one of them should. I hope i can make this more clear by showing my Matlab code:
% Integration coupling variables
clear elem
elem.elem='elcplscalar';
elem.g={'1'};
elem.var={'FaIn','FaOut'};
elem.global={'1'};
elem.maxvars={'2'};
clear src;
src.ind={{'4','5','9'},{'17','18','22'}};
src.expr={{'p*nz'},{'p*nz'}};
src.ipoints={{'4'},{'4'}};
elem.src{1}={{},{},src};
fem.elemcpl=elem;
Thanks in advance,
AM
For my problem, i need to define two boundary integration coupling variables. 1 calculating the force(integration of pressure), outside of a surface and the other calculating this force on the inside. Later i can use a global expression to calculate the difference between the two.
However i am having difficulties trying to scirpt this in Matlab. I've tried doing it in Comsol but to no affect. Problem is both coupling variables so up at each group of boundaries while only one of them should. I hope i can make this more clear by showing my Matlab code:
% Integration coupling variables
clear elem
elem.elem='elcplscalar';
elem.g={'1'};
elem.var={'FaIn','FaOut'};
elem.global={'1'};
elem.maxvars={'2'};
clear src;
src.ind={{'4','5','9'},{'17','18','22'}};
src.expr={{'p*nz'},{'p*nz'}};
src.ipoints={{'4'},{'4'}};
elem.src{1}={{},{},src};
fem.elemcpl=elem;
Thanks in advance,
AM
1 Reply Last Post 5 nov. 2009, 09:47 UTC−5