need to store cell nodes, not elem nodes
This commit is contained in:
parent
ac0fa2fce9
commit
2d294aba23
|
@ -48,10 +48,10 @@ subroutine discretization_init(homogenizationAt,microstructureAt,&
|
||||||
real(pReal), dimension(:,:), intent(in) :: &
|
real(pReal), dimension(:,:), intent(in) :: &
|
||||||
IPcoords0, &
|
IPcoords0, &
|
||||||
NodeCoords0
|
NodeCoords0
|
||||||
integer, optional, intent(in) :: &
|
integer, optional, intent(in) :: &
|
||||||
sharedNodesBeginn
|
sharedNodesBeginn
|
||||||
|
|
||||||
write(6,'(/,a)') ' <<<+- discretization init -+>>>'
|
write(6,'(/,a)') ' <<<+- discretization init -+>>>'; flush(6)
|
||||||
|
|
||||||
discretization_nElem = size(microstructureAt,1)
|
discretization_nElem = size(microstructureAt,1)
|
||||||
discretization_nIP = size(IPcoords0,2)/discretization_nElem
|
discretization_nIP = size(IPcoords0,2)/discretization_nElem
|
||||||
|
@ -81,15 +81,15 @@ subroutine discretization_results
|
||||||
|
|
||||||
real(pReal), dimension(:,:), allocatable :: u
|
real(pReal), dimension(:,:), allocatable :: u
|
||||||
|
|
||||||
call results_closeGroup(results_addGroup(trim('current/geometry')))
|
call results_closeGroup(results_addGroup('current/geometry'))
|
||||||
|
|
||||||
u = discretization_NodeCoords (1:3,:discretization_sharedNodesBeginn) &
|
u = discretization_NodeCoords (1:3,:discretization_sharedNodesBeginn) &
|
||||||
- discretization_NodeCoords0(1:3,:discretization_sharedNodesBeginn)
|
- discretization_NodeCoords0(1:3,:discretization_sharedNodesBeginn)
|
||||||
call results_writeDataset('current/geometry',u,'u_n','nodal displacements','m')
|
call results_writeDataset('current/geometry',u,'u_n','displacements of the nodes','m')
|
||||||
|
|
||||||
u = discretization_IPcoords &
|
u = discretization_IPcoords &
|
||||||
- discretization_IPcoords0
|
- discretization_IPcoords0
|
||||||
call results_writeDataset('current/geometry',u,'u_c','cell center displacements','m')
|
call results_writeDataset('current/geometry',u,'u_p','displacements of the materialpoints','m')
|
||||||
|
|
||||||
end subroutine discretization_results
|
end subroutine discretization_results
|
||||||
|
|
||||||
|
|
|
@ -61,7 +61,7 @@ subroutine mesh_init(ip,el)
|
||||||
integer(C_INTPTR_T) :: &
|
integer(C_INTPTR_T) :: &
|
||||||
devNull, z, z_offset
|
devNull, z, z_offset
|
||||||
|
|
||||||
write(6,'(/,a)') ' <<<+- mesh_grid init -+>>>'; flush(6)
|
write(6,'(/,a)') ' <<<+- mesh_grid init -+>>>'; flush(6)
|
||||||
|
|
||||||
call readGeom(grid,geomSize,origin,microstructureAt,homogenizationAt)
|
call readGeom(grid,geomSize,origin,microstructureAt,homogenizationAt)
|
||||||
|
|
||||||
|
|
|
@ -102,7 +102,7 @@ subroutine mesh_init(ip,el)
|
||||||
|
|
||||||
call discretization_init(microstructureAt,homogenizationAt,&
|
call discretization_init(microstructureAt,homogenizationAt,&
|
||||||
ip_reshaped,&
|
ip_reshaped,&
|
||||||
node0_elem)
|
node0_cell)
|
||||||
|
|
||||||
call writeGeometry(0,connectivity_elem,&
|
call writeGeometry(0,connectivity_elem,&
|
||||||
reshape(connectivity_cell,[elem%NcellNodesPerCell,elem%nIPs*nElems]),&
|
reshape(connectivity_cell,[elem%NcellNodesPerCell,elem%nIPs*nElems]),&
|
||||||
|
@ -152,11 +152,11 @@ subroutine writeGeometry(elemType, &
|
||||||
|
|
||||||
coordinates_temp = coordinates_nodes
|
coordinates_temp = coordinates_nodes
|
||||||
call results_writeDataset('geometry',coordinates_temp,'x_n', &
|
call results_writeDataset('geometry',coordinates_temp,'x_n', &
|
||||||
'coordinates of the nodes','m')
|
'initial coordinates of the nodes','m')
|
||||||
|
|
||||||
coordinates_temp = coordinates_points
|
coordinates_temp = coordinates_points
|
||||||
call results_writeDataset('geometry',coordinates_temp,'x_p', &
|
call results_writeDataset('geometry',coordinates_temp,'x_p', &
|
||||||
'coordinates of the material points','m')
|
'initial coordinates of the materialpoints','m')
|
||||||
|
|
||||||
call results_closeJobFile
|
call results_closeJobFile
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue