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.
How to manually operate on "fem.sol.u" data
Posted Jun 4, 2010, 3:51 p.m. EDT 2 Replies
Please login with a confirmed email address before reporting spam
I have a COMSOL model for heat-driven buoyant flow in a cavity. I exported my fem with 29k DOF, now I want to do post-processing manually for equations dependent on the fluid velocity and temperature. I can extract the 'u' data giving me the x-velocity of my fluid, but now have two questions:
1. I'm interested in three variables; u, v, and T. How do I access the y-velocity and temperature at my nodes? Is that already contained in the 29k solution points?
2. From the 29k data points in the fem structure, how do I differentiate my final solutions at the nodes so I can manually extract the data points for processing?
>> fem.sol
ans =
u: [29320x6 double]
reacf: [29320x6 double] (6906 stored)
plist: [10 100 1000 10000 100000 1000000]
pname: {'Ra'}
Six parameters were assigned to produce six solutions - six sequential increments of the Raleigh number.
Many thanks if you can shed any light
1. I'm interested in three variables; u, v, and T. How do I access the y-velocity and temperature at my nodes? Is that already contained in the 29k solution points?
2. From the 29k data points in the fem structure, how do I differentiate my final solutions at the nodes so I can manually extract the data points for processing?
>> fem.sol
ans =
u: [29320x6 double]
reacf: [29320x6 double] (6906 stored)
plist: [10 100 1000 10000 100000 1000000]
pname: {'Ra'}
Six parameters were assigned to produce six solutions - six sequential increments of the Raleigh number.
Many thanks if you can shed any light
2 Replies Last Post Jun 8, 2010, 3:16 p.m. EDT