Exporting 1D profiles
Posted: Mon Dec 13, 2010 11:31 pm
Hello,
I'm aware of the functionality in the Code_Saturne GUI for exporting 1D profiles (defined by two
points) and the way that this can be extended in usproj by defining the line by an arbitrary number of points. For those that don't know, this exports data from the cells closest to a set number of points along that line, with the default being 200 (I think).
What I'd like to be able to do is to export data from every cell through which my profile passes. This would sort of 'automatically' set the resolution for the output data in what I would regard as a sensible way!
One suggestion for achieving this end is to check whether a line intersects a cell using something called the "Liang-Basky clipping algorithm". The implementation of this looks fairly straighforward, after a connectivity matrix has been assembled (which lists all the faces belonging to a given cell).
The point of this post is to ask whether anyone has already done this. If not I'll have a go and attach my effort to this thread at an as-yet unspecified future date!
Gareth
I'm aware of the functionality in the Code_Saturne GUI for exporting 1D profiles (defined by two
points) and the way that this can be extended in usproj by defining the line by an arbitrary number of points. For those that don't know, this exports data from the cells closest to a set number of points along that line, with the default being 200 (I think).
What I'd like to be able to do is to export data from every cell through which my profile passes. This would sort of 'automatically' set the resolution for the output data in what I would regard as a sensible way!
One suggestion for achieving this end is to check whether a line intersects a cell using something called the "Liang-Basky clipping algorithm". The implementation of this looks fairly straighforward, after a connectivity matrix has been assembled (which lists all the faces belonging to a given cell).
The point of this post is to ask whether anyone has already done this. If not I'll have a go and attach my effort to this thread at an as-yet unspecified future date!
Gareth