I am not sure I understood the request -
are you trying to export a sub-setction of the nodes to abaqus or a sub-section of the surface (including both nodes and triangles)?
with your below code, does it work? what was the issue/error? what do you mean by "not integrated with the original .inp"?
Hello Dr. Fang,
Since I have been using saveabaqus.m to write my Abaqus input files for a simple cube geometry, I was wondering how I can create a node set of all nodes at a specific surface say, z = L location (where L ranges from 0 to 10) to be integrated into the generated .inp file? I have tried adding the following lines to my code where iso2mesh and saveabaqus are called and it returns the desired results. However, that resulting node set file is not integrated with the original .inp with node and element data file generated by saveabaqus. I am trying to modify the saveabaqus.m to add node sets at desired x, y, and z locations to apply boundary conditions at the outermost surfaces. Your help in this regard is highly appreciated.
% Define column rangecol = 3; % for nodes on Z face% Read specific columns within the defined rangespecified_column = node(:,col);indices = find(node(:, col) >= 10); %for L=10 greater or equal to 10 is used because there are certain nodes beyond L=10 as the elements are not smoothselected_rows = node(indices, :);% Extracting the original node numbers of the selected rowsselected_node_numbers = indices;% Writing the selected coordinates and their indices to an Abaqus input filefileID = fopen('selected_nodes_ZL.inp', 'w');fprintf(fileID, '*NSET, NSET=SelectedNodes\n');for i = 1:length(indices)fprintf(fileID, '%d,\n', indices(i));endfclose(fileID);Cheers
--
You received this message because you are subscribed to the Google Groups "iso2mesh-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to iso2mesh-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/iso2mesh-users/56ff0117-4d3f-4d2b-abae-a8cb9ea00542n%40googlegroups.com.