Commit f935db27 authored by Tomáš Jakubec's avatar Tomáš Jakubec
Browse files

Heat conduction

parent 65492615
Loading
Loading
Loading
Loading
+6 −6
Original line number Original line Diff line number Diff line
@@ -352,20 +352,20 @@ public:
    void appendBoundaryCell(IndexType cellIndex, IndexType faceIndex){
    void appendBoundaryCell(IndexType cellIndex, IndexType faceIndex){
        Cell c;
        Cell c;
        c.setIndex(cellIndex);
        c.setIndex(cellIndex);
        c.SetBoundaryElementIndex(faceIndex);
        c.setBoundaryElementIndex(faceIndex);
        BoundaryCells.push_back(c);
        BoundaryCells.push_back(c);
    }
    }


    void setupBoundaryCells(){
    void setupBoundaryCells(){
        for (Face& face : getFaces()){
        for (Face& face : getFaces()){
            if (face.GetCellLeftIndex == INVALID_INDEX(IndexType)){
            if (face.getCellLeftIndex() == INVALID_INDEX(IndexType)){
                IndexType cellIndex = BoundaryCells.size() | BOUNDARY_INDEX(IndexType);
                IndexType cellIndex = BoundaryCells.size() | BOUNDARY_INDEX(IndexType);
                face.SetCellLeftIndex(cellIndex);
                face.setCellLeftIndex(cellIndex);
                appendBoundaryCell(cellIndex, face.getIndex());
                appendBoundaryCell(cellIndex, face.getIndex());
            }
            }
            if (face.GetCellRightIndex == INVALID_INDEX(IndexType)){
            if (face.getCellRightIndex() == INVALID_INDEX(IndexType)){
                IndexType cellIndex = BoundaryCells.size() | BOUNDARY_INDEX(IndexType);
                IndexType cellIndex = BoundaryCells.size() | BOUNDARY_INDEX(IndexType);
                face.SetCellRightIndex(cellIndex);
                face.setCellRightIndex(cellIndex);
                appendBoundaryCell(cellIndex, face.getIndex());
                appendBoundaryCell(cellIndex, face.getIndex());
            }
            }
        }
        }
@@ -375,7 +375,7 @@ public:


    void setupBoundaryCellsCenters() {
    void setupBoundaryCellsCenters() {
        for(Cell& cell : BoundaryCells){
        for(Cell& cell : BoundaryCells){
            cell.SetCenter(getFaces().at(cell.getBoundaryElementIndex()).GetCenter());
            cell.setCenter(getFaces().at(cell.getBoundaryElementIndex()).getCenter());
        }
        }
    }
    }


+3 −3
Original line number Original line Diff line number Diff line
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE QtCreatorProject>
<!DOCTYPE QtCreatorProject>
<!-- Written by QtCreator 4.10.0, 2019-10-25T12:44:25. -->
<!-- Written by QtCreator 4.10.0, 2019-10-29T23:39:08. -->
<qtcreator>
<qtcreator>
 <data>
 <data>
  <variable>EnvironmentId</variable>
  <variable>EnvironmentId</variable>
@@ -67,7 +67,7 @@
   <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Desktop Qt 5.12.1 MinGW 64-bit</value>
   <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Desktop Qt 5.12.1 MinGW 64-bit</value>
   <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Desktop Qt 5.12.1 MinGW 64-bit</value>
   <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Desktop Qt 5.12.1 MinGW 64-bit</value>
   <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">qt.qt5.5121.win64_mingw73_kit</value>
   <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">qt.qt5.5121.win64_mingw73_kit</value>
   <value type="int" key="ProjectExplorer.Target.ActiveBuildConfiguration">0</value>
   <value type="int" key="ProjectExplorer.Target.ActiveBuildConfiguration">1</value>
   <value type="int" key="ProjectExplorer.Target.ActiveDeployConfiguration">0</value>
   <value type="int" key="ProjectExplorer.Target.ActiveDeployConfiguration">0</value>
   <value type="int" key="ProjectExplorer.Target.ActiveRunConfiguration">0</value>
   <value type="int" key="ProjectExplorer.Target.ActiveRunConfiguration">0</value>
   <valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.0">
   <valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.0">
@@ -317,7 +317,7 @@
    <value type="bool" key="RunConfiguration.UseQmlDebugger">false</value>
    <value type="bool" key="RunConfiguration.UseQmlDebugger">false</value>
    <value type="bool" key="RunConfiguration.UseQmlDebuggerAuto">true</value>
    <value type="bool" key="RunConfiguration.UseQmlDebuggerAuto">true</value>
    <value type="QString" key="RunConfiguration.WorkingDirectory"></value>
    <value type="QString" key="RunConfiguration.WorkingDirectory"></value>
    <value type="QString" key="RunConfiguration.WorkingDirectory.default">D:/Skola/Vyzkumak/nova sit/build-Unstructured_mesh-Desktop_Qt_5_12_1_MinGW_64_bit-Ladu011bnu00ed</value>
    <value type="QString" key="RunConfiguration.WorkingDirectory.default">D:/Skola/Vyzkumak/nova sit/build-Unstructured_mesh-Desktop_Qt_5_12_1_MinGW_64_bit-Vydu00e1nu00ed</value>
   </valuemap>
   </valuemap>
   <value type="int" key="ProjectExplorer.Target.RunConfigurationCount">1</value>
   <value type="int" key="ProjectExplorer.Target.RunConfigurationCount">1</value>
  </valuemap>
  </valuemap>
+103 −833

File changed.

Preview size limit exceeded, changes collapsed.