Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
pugs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
code
pugs
Commits
4bac1e21
Commit
4bac1e21
authored
2 years ago
by
Axelle Drouard
Browse files
Options
Downloads
Plain Diff
Merge branch 'feature/Nodal_diffusion' of gitlab.delpinux.fr:code/pugs into feature/Nodal_diffusion
parents
af464c7a
22caf8e1
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/scheme/ScalarNodalScheme.cpp
+8
-12
8 additions, 12 deletions
src/scheme/ScalarNodalScheme.cpp
with
8 additions
and
12 deletions
src/scheme/ScalarNodalScheme.cpp
+
8
−
12
View file @
4bac1e21
...
@@ -586,8 +586,8 @@ class ScalarNodalSchemeHandler::ScalarNodalScheme : public ScalarNodalSchemeHand
...
@@ -586,8 +586,8 @@ class ScalarNodalSchemeHandler::ScalarNodalScheme : public ScalarNodalSchemeHand
const
CellId
cell_id_k
=
node_to_cell
[
i_cell_k
];
const
CellId
cell_id_k
=
node_to_cell
[
i_cell_k
];
const
size_t
i_node_k
=
node_local_number_in_its_cells
[
i_cell_k
];
const
size_t
i_node_k
=
node_local_number_in_its_cells
[
i_cell_k
];
S
(
cell_id_j
,
cell_id_k
)
-
=
S
(
cell_id_j
,
cell_id_k
)
+
=
dot
(
kappar_invBetar
[
node_id
]
*
Cjr
(
cell_id_k
,
i_node_k
),
Cjr
(
cell_id_j
,
i_node_j
));
dt
/
Vj
[
cell_id_j
]
*
dot
(
kappar_invBetar
[
node_id
]
*
Cjr
(
cell_id_k
,
i_node_k
),
Cjr
(
cell_id_j
,
i_node_j
));
}
}
}
}
}
else
if
((
node_is_neumann
[
node_id
])
&&
(
not
node_is_corner
[
node_id
])
&&
(
not
node_is_dirichlet
[
node_id
]))
{
}
else
if
((
node_is_neumann
[
node_id
])
&&
(
not
node_is_corner
[
node_id
])
&&
(
not
node_is_dirichlet
[
node_id
]))
{
...
@@ -604,7 +604,8 @@ class ScalarNodalSchemeHandler::ScalarNodalScheme : public ScalarNodalSchemeHand
...
@@ -604,7 +604,8 @@ class ScalarNodalSchemeHandler::ScalarNodalScheme : public ScalarNodalSchemeHand
const
CellId
cell_id_k
=
node_to_cell
[
i_cell_k
];
const
CellId
cell_id_k
=
node_to_cell
[
i_cell_k
];
const
size_t
i_node_k
=
node_local_number_in_its_cells
[
i_cell_k
];
const
size_t
i_node_k
=
node_local_number_in_its_cells
[
i_cell_k
];
S
(
cell_id_j
,
cell_id_k
)
-=
S
(
cell_id_j
,
cell_id_k
)
+=
dt
/
Vj
[
cell_id_j
]
*
dot
(
kappar_invBetar
[
node_id
]
*
dot
(
kappar_invBetar
[
node_id
]
*
(
Cjr
(
cell_id_k
,
i_node_k
)
-
theta
(
cell_id_k
,
i_node_k
)
/
sum_theta
[
node_id
]
*
sum_Cjr
[
node_id
]),
(
Cjr
(
cell_id_k
,
i_node_k
)
-
theta
(
cell_id_k
,
i_node_k
)
/
sum_theta
[
node_id
]
*
sum_Cjr
[
node_id
]),
Q
*
Cjr
(
cell_id_j
,
i_node_j
));
Q
*
Cjr
(
cell_id_j
,
i_node_j
));
...
@@ -619,8 +620,8 @@ class ScalarNodalSchemeHandler::ScalarNodalScheme : public ScalarNodalSchemeHand
...
@@ -619,8 +620,8 @@ class ScalarNodalSchemeHandler::ScalarNodalScheme : public ScalarNodalSchemeHand
const
CellId
cell_id_k
=
node_to_cell
[
i_cell_k
];
const
CellId
cell_id_k
=
node_to_cell
[
i_cell_k
];
const
size_t
i_node_k
=
node_local_number_in_its_cells
[
i_cell_k
];
const
size_t
i_node_k
=
node_local_number_in_its_cells
[
i_cell_k
];
S
(
cell_id_j
,
cell_id_k
)
-
=
S
(
cell_id_j
,
cell_id_k
)
+
=
dot
(
kappar_invBetar
[
node_id
]
*
Cjr
(
cell_id_k
,
i_node_k
),
Cjr
(
cell_id_j
,
i_node_j
));
dt
/
Vj
[
cell_id_j
]
*
dot
(
kappar_invBetar
[
node_id
]
*
Cjr
(
cell_id_k
,
i_node_k
),
Cjr
(
cell_id_j
,
i_node_j
));
}
}
}
}
}
else
if
(
node_is_dirichlet
[
node_id
]
&&
node_is_corner
[
node_id
])
{
}
else
if
(
node_is_dirichlet
[
node_id
]
&&
node_is_corner
[
node_id
])
{
...
@@ -632,19 +633,14 @@ class ScalarNodalSchemeHandler::ScalarNodalScheme : public ScalarNodalSchemeHand
...
@@ -632,19 +633,14 @@ class ScalarNodalSchemeHandler::ScalarNodalScheme : public ScalarNodalSchemeHand
const
CellId
cell_id_k
=
node_to_cell
[
i_cell_k
];
const
CellId
cell_id_k
=
node_to_cell
[
i_cell_k
];
const
size_t
i_node_k
=
node_local_number_in_its_cells
[
i_cell_k
];
const
size_t
i_node_k
=
node_local_number_in_its_cells
[
i_cell_k
];
S
(
cell_id_j
,
cell_id_k
)
-=
S
(
cell_id_j
,
cell_id_k
)
+=
dt
/
Vj
[
cell_id_j
]
*
dot
(
corner_kappar_invBetar
[
node_id
]
*
Cjr
(
cell_id_k
,
i_node_k
),
Cjr
(
cell_id_j
,
i_node_j
));
dot
(
corner_kappar_invBetar
[
node_id
]
*
Cjr
(
cell_id_k
,
i_node_k
),
Cjr
(
cell_id_j
,
i_node_j
));
}
}
}
}
}
}
}
}
for
(
CellId
cell_id_j
=
0
;
cell_id_j
<
mesh
->
numberOfCells
();
++
cell_id_j
)
{
for
(
CellId
cell_id_k
=
0
;
cell_id_k
<
mesh
->
numberOfCells
();
++
cell_id_k
)
{
S
(
cell_id_j
,
cell_id_k
)
=
-
dt
/
Vj
[
cell_id_j
]
*
S
(
cell_id_j
,
cell_id_k
);
}
};
for
(
CellId
cell_id
=
0
;
cell_id
<
mesh
->
numberOfCells
();
++
cell_id
)
{
for
(
CellId
cell_id
=
0
;
cell_id
<
mesh
->
numberOfCells
();
++
cell_id
)
{
S
(
cell_id
,
cell_id
)
+=
1
;
S
(
cell_id
,
cell_id
)
+=
1
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment